You are here: Reference Manual > FME Server Web Services > Notification Service > Publishers > Configuring a Dropbox Watch Publisher

Configuring a Dropbox Watch Publisher

  1. In the FME ServerWeb User Interface, selectNotifications > Publications, and clickNew.
  2. Provide a name for the Publication
  3. Protocol: Select Dropbox Watch.
  4. Specify theTopicsyou want to publish to using the drop-down selector. To create a topic and use it right away, click+.

  5. Access Token: Provide the OAuth2 access token for the Dropbox account you want to watch. For more information, seeConfiguring Your Dropbox Account App.
  6. 路径表:y上提供一个位置our Dropbox account to watch for changes, using forward slashes. For example:/MyFolder. To specify the top-level, or 'root', use a single forward slash:/.
  7. 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.
  8. 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.
  9. 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"

}