Skip to content
Utilities to test the Dropbox API v2.
Python
Branch: master
Clone or download
cakoose Upload-style calls: Only use ASCII in Dropbox-API-Arg.
Though it's safe to use UTF-8-encoded JSON, our internal request helpers
want headers to be ASCII-only.
Latest commit a057a71 Apr 11, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore ReadMe: Fix list numbering. May 8, 2015
ReadMe.md Update to /2-beta-2 Jun 5, 2015
repl.py Upload-style calls: Only use ASCII in Dropbox-API-Arg. Apr 12, 2017

ReadMe.md

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.

  2. Put the access token in a file called auth.json:

    {
        "access_token": "<insert-access-token-here>"
    }
  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"'})
    
You can’t perform that action at this time.