Configuring a Dropbox Watch Publisher
- In the FME Server Web User Interface, select Notifications > Publications, and click New.
- Provide a name for the Publication
- Protocol: Select Dropbox Watch.
-
Specify the Topics you want to publish to using the drop-down selector. To create a topic and use it right away, click +.
- 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 publisher monitors all actions on the specified directory, including adding (CREATE), changing (MODIFY), and deleting (DELETE) files (and folders, if applicable). 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 dropbox and select it.
- 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"
}