Advertisement
Guest User

Untitled

a guest
May 10th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. from dropbox import client, rest, session
  2.  
  3. sess = session.DropboxSession('iqxjea6s7ctxv9j', 'npac0nca3p3ct9f', 'dropbox')
  4. client = client.DropboxClient(sess)
  5. f = open('txt2.txt') # upload a file
  6. response = client.put_file('/magnum-opus.txt', f)
  7. print "uploaded:", response
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement