https://github.com/dropbox/dropbox-api-v2-repl
Utilities to test the Dropbox API v2.
https://github.com/dropbox/dropbox-api-v2-repl
Last synced: 11 months ago
JSON representation
Utilities to test the Dropbox API v2.
- Host: GitHub
- URL: https://github.com/dropbox/dropbox-api-v2-repl
- Owner: dropbox
- Created: 2015-04-02T02:58:08.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T22:51:15.000Z (about 7 years ago)
- Last Synced: 2025-06-10T03:11:21.543Z (about 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 26
- Watchers: 18
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Dropbox API v2 REPL
A Python REPL that lets you make calls to the Dropbox API v2.
1. Get a Dropbox API access token. You can use the Dropbox website to [get an access token for your own account](https://blogs.dropbox.com/developers/2014/05/generate-an-access-token-for-your-own-account/).
2. Put the access token in a file called `auth.json`:
```json
{
"access_token": ""
}
```
3. 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"'})
```