cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use proxies with Dropbox API ?

How to use proxies with Dropbox API ?

aaa2520
New member | Level 2

 

dbx = dropbox.dropbox.Dropbox('***************')
f = open("/home/net/a.py", 'rb')
data = f.read()
try:
    res = dbx.files_upload(data, "/a.py", dropbox.files.WriteMode.overwrite, mute=True)

 

I want to use a proxy, how to do that  ?

Thanks!

1 Reply 1

Greg-DB
Dropbox Staff

[Cross-linking for reference: https://stackoverflow.com/questions/41537788/how-to-use-proxies-with-dropbox-api ]

 

You should be able to create a requests session with proxies using dropbox.create_session and pass that to dropbox.Dropbox as the session parameter.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?