Hello, I'm struggling with the process of obtaining/refreshing short lived tokens. I have a remote camera that will occasionally upload a picture using HTTP over the cellular network. The API works but of course the token generated in the App console times out so ... I dived into the documentation. Many many hours later I'm possibly more confused than ever. I'm working mainly from: "developers/documentation/http/documentation"
I believe what I need to do is this:
Example: Auth URL for code flow with offline token access type
"https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&token_access_type=offline&response_type=code"
which I have done and eventually got an "Access Code" which I think will be used by the camera to request a short lived token.
I'm guessing that every time the camera has a picture to upload, it will first have to send a request for a new token using the Access code? Am I right in thinking this access code will "live forever" unless I revoke/cancel/destroy it?
I tried to request a token with the method "Example: access token request in code flow" but had no success.
Am I on the right track or hopelessly in the weeds?
I hope I don't need to worry about Redirect URIs
The token request examples all use curl which introduces another level and failure point for me and my camera app.
I tried converting it to HTTP and an error there could by my problem.