FME Flow:2025.1
Configuration d'un éditeur Dropbox Watch
- In the FME Flow Web User Interface, select Notifications > Publications, and click Create.
- Provide a Name for the Publication
- Protocol: Select Dropbox Watch.
-
Précisez leThèmes vous souhaitez publier en utilisant le sélecteur déroulant. Pour créer un sujet et l'utiliser immédiatement, cliquez sur+.
- Authentication Mode: Specifies the type of OAuth2 access token for the Dropbox account you want to watch.
- Use Authorization Code: Use a Dropbox token generated dynamically. You must authorize with Dropbox to generate an access token, which expires after a four-hour session, and a refresh token that is applied automatically for longer access:
- Click Authorize.
- On the Authorize Dropbox dialog, provide the following credentials for your Dropbox account app:
- App Key
- Authorization Code
- App Secret
- Click Authorize.
- Use Token: Use a Dropbox access token generated before September 2021 that does not expire.
- Use Authorization Code: Use a Dropbox token generated dynamically. You must authorize with Dropbox to generate an access token, which expires after a four-hour session, and a refresh token that is applied automatically for longer access:
- Access Token: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed. If Use Token is specified above, provide the OAuth2 access token for the Dropbox account you want to watch.
- Refresh Token: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed.
- Access Token Expiry: If Use Authorization Code is specified above, this field auto-populates after Dropbox authorization is completed.
- Chemin à surveiller : indiquez un emplacement sur votre compte Dropbox pour surveiller les modifications, à l'aide de barres obliques. For example:
/MyFolder. To specify the top-level, or 'root', use a single forward slash:/. - Surveiller les sous-répertoires : pour surveiller l’activité dans le répertoire sélectionné et tous les sous-répertoires, spécifiez Oui. Pour surveiller l'activité uniquement dans le répertoire sélectionné et non dans ses sous-répertoires, spécifiez Non.
- Filtre:Par défaut, toutes les actions sur le répertoire spécifié sont surveillées, y compris l'ajout (CRÉER), la modification (MODIFIER) et la suppression (SUPPRIMER) de fichiers (et de dossiers, le cas échéant). Pour surveiller uniquement une ou deux de ces actions, cliquez sur le « x » à côté de l'action que vous ne souhaitez pas surveiller pour la supprimer. Pour ajouter une action après l'avoir supprimée, cliquez à l'intérieur de la liste déroulante et sélectionnez-la.
- Cliquez sur OK.
Exemples de schémas de notification
Lorsqu'un fichier est ajouté
{
"dropboxwatch_publisher_user": "Jean Dupont",
"ws_topic": "EXEMPLE_SUJET",
"dropboxwatch_publisher_path": "/test/nouveau document texte.txt",
"dropboxwatch_publisher_action": "CRÉER",
"fns_type": "dropboxwatch_publisher"
}
Lorsqu'un fichier est modifié (par exemple, du contenu ajouté)
{
"dropboxwatch_publisher_user": "Jean Dupont",
"ws_topic": "EXEMPLE_SUJET",
"dropboxwatch_publisher_path": "/test/nouveau document texte.txt",
"dropboxwatch_publisher_action": "MODIFIER",
"fns_type": "dropboxwatch_publisher"
}
Lorsqu'un fichier est supprimé
{
"dropboxwatch_publisher_user": "Jean Dupont",
"ws_topic": "EXEMPLE_SUJET",
"dropboxwatch_publisher_path": "/test/nouveau document texte.txt",
"dropboxwatch_publisher_action": "SUPPRIMER",
"fns_type": "dropboxwatch_publisher"
}