Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from dropbox import client, rest, session
- sess = session.DropboxSession('iqxjea6s7ctxv9j', 'npac0nca3p3ct9f', 'dropbox')
- client = client.DropboxClient(sess)
- f = open('txt2.txt') # upload a file
- response = client.put_file('/magnum-opus.txt', f)
- print "uploaded:", response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement