Dropbox example that responds to webhook notifications to synchronize local notes written with Boostnote to Airtable
This project is looking for notes in .cson
(CoffeeScript Object Notation) format in a Dropbox folder named /Boostnote/notes
This project uses an API token for server communication with authorization flow which prompts the user to enter an authorization code from their Dropbox account.
From the HTTP API documentation:
The code flow returns a code via the redirect_uri callback which should then be converted into a bearer token using the /oauth2/token call. This is the recommended flow for apps that are running on a server.
View the live app on https://dropbox-webhook.gomix.me.
-
Create an app on your Dropbox developer account.
-
Fill in
DROPBOX_APP_KEY
andDROPBOX_APP_SECRET
in your .env file with the app key and secret from your Dropbox app. -
Generate a Dropbox access token and put that in your
.env
file asDROPBOX_ACCESS_TOKEN
-
For syncing with Airtable, enter your Airtable API key in
.env
asAIRTABLE_API_KEY
. This is currently setup to push data to a table in Airtable called 'Raw Data', so make sure you have a table with this name.