dropbox-api-v2-repl
dropbox-api-v2-repl copied to clipboard
Utilities to test the Dropbox API v2.
Dropbox API v2 REPL
A Python REPL that lets you make calls to the Dropbox API v2.
-
Get a Dropbox API access token. You can use the Dropbox website to get an access token for your own account.
-
Put the access token in a file called
auth.json:{ "access_token": "<insert-access-token-here>" } -
Run the command:
python repl.py auth.json.For help, type 'hint' In [1]: hint Out[1]: Use 'a' to make requests to the "api" server. Use 'c' to make requests to the "content" server. Examples: a.rpc('files/get_metadata', path='/Camera Uploads') c.up('files/upload', path='/faq.txt', mode='add', _b=b'What?') c.down('files/download', path='/faq.txt', _h={'If-None-Match': 'W/"1234"'})