Dropbox: auto-accept invite

Readme:

Dropbox: auto-accept invite

If you want to automatically accept invitations to shared Dropbox folders, this is the sketch for you.

To use it, fork this sketch, then sign into the Dropbox.com website and

1: Create app

Visit: https://www.dropbox.com/developers/apps/create and create an app withe the following settings:

  • Dropbox API
  • Full Dropbox
  • "Auto-accepter" (or whatever name you want)
  • Create app

2: Create OAuth token

curl -X POST https://content.dropboxapi.com/2/files/alpha/upload \
    --header "Authorization: Bearer COPY_THIS_TOKEN_TO_CLIPBOARD" \
    --header "Dropbox-API-Arg: {\"path\": \"/Homework/math/Matrices.txt\",\"mode\": \"add\",\"autorename\": true,\"mute\": false,\"property_groups\": [{\"template_id\": \"ptid:AAAAAAAAAAAAAAAAAAA\",\"fields\": [{\"name\": \"Security Policy\",\"value\": \"Confidential\"}]}]}" \
    --header "Content-Type: application/octet-stream" \
    --data-binary @local_file.txt

3: Set the API token in BOTS using the Config tab

(Do not enter it in the details below, as that will be public - visit the Config tab of this sketch)

4: Deploy!

Go to versions, and press deploy under the latest version