You are here: Reference Manual > FME Server Services > Notification Service > Publishers > Configuring a Dropbox Watch Publisher
Configuring a Dropbox Watch Publisher
- In the FME Server Web User Interface, select Manage > Notifications.
- Select the Publications tab and click New.
- Provide a name for the Publication
- Specify the topics you want to publish to using the drop-down selector, or click Select All if you want to publish to all topics.
- Protocol: Select Dropbox Watch.
- Access Token: Provide the OAuth2 access token for the Dropbox account you want to watch. For more information, see Configuring Your Dropbox Account App .
- Path to Watch: Provide a location on your Dropbox account to watch for changes, using forward slashes. For example:
/MyFolder
. To specify the top-level, or 'root', use a single forward slash:/
. - Watch Subdirectories: To watch activity in the selected directory and all subdirectories, specify Yes. To watch activity only in the selected directory and not in its subdirectories, specify No.
- Filter: By default, the Dropbox Watch publisher monitors all actions on the specified directory, including adding (CREATE), changing (MODIFY), and deleting (DELETE) files. To apply the publisher to only one or two of these actions, click the "x" beside the action you do not want to monitor to remove it. To add an action after removing it, click inside the box and select it from the drop-down, or click Select All to add all actions.
- Click OK.
Sample Notification Schemas
When a file is added
{
"dropboxwatch_publisher_user": "John Doe",
"ws_topic": "SAMPLE_TOPIC",
"dropboxwatch_publisher_path": "/test/new text document.txt",
"dropboxwatch_publisher_action": "CREATE",
"fns_type": "dropboxwatch_publisher"
}
When a file is changed (for example, added content)
{
"dropboxwatch_publisher_user": "John Doe",
"ws_topic": "SAMPLE_TOPIC",
"dropboxwatch_publisher_path": "/test/new text document.txt",
"dropboxwatch_publisher_action": "MODIFY",
"fns_type": "dropboxwatch_publisher"
}
When a file is deleted
{
"dropboxwatch_publisher_user": "John Doe",
"ws_topic": "SAMPLE_TOPIC",
"dropboxwatch_publisher_path": "/test/new text document.txt",
"dropboxwatch_publisher_action": "DELETE",
"fns_type": "dropboxwatch_publisher"
}