Hello all,
I'm developing a backup application which should have a degree of autonomy - configure once and run in the background kind of thing. This is all in C++ with libcurl to do the network side of things. I've been prototyping curl requests using the curl itself (following the examples in https://www.dropbox.com/developers/documentation/http/overview).
So far, everything looks good except for the initial https://www.dropbox.com/oauth2/authorize
At the moment, I'm stuck with pasting URLs into a browser to get the initial authorisation token.
However, once I have that, then I can manage to get an access token and then upload a file.
How long do access tokens last? Is there an expiry time associated with them?
Does the redirect_uri mean I have to provide a functional myapp.com where oauth2/authorize sends the browser (with parameters state=abc&code=xyz).
- Some code on myapp.com then sends a request to https://www.dropbox.com/oauth2/token
- My application on the users' machine then queries myapp.com with state=abc to find out what the access token should be for further api.dropboxapi.com methods.
If this is so, does this mean that if myapp.com is down, then users cannot use my application?
I was hoping to implement something which only required dropbox to be online.
Thanks for any information,
Steve