To download other user dropbox file i use
with open("rc.xlsx", "wb") as f:
shared_link = "https://www.dropbox.com/s/xx/xx.xlsx?dl=0"
metadata, res = dbx.sharing_get_shared_link_file(url=shared_link,link_password ='xxxx')
f.write(res.content)
Even so this is not my file i still need mydropbox token to download it. Is it possible to avoid it ?
dbx = dropbox.Dropbox(mydropbox_token)
From Dropbox Python SDK tutorial,
In order to make calls to the API, you'll need an instance of the Dropbox object. To instantiate, pass in the access token for the account you want to link.
So, the access token is necessary for creating an object of the Dropbox
class.
In the example of dropbox
API, they also show that the access token is mandatory.
References: