Replies: 12 comments
-
Hi, i confirm this. It works with short-lived token but it doesn't work with app key/secret Code example:
Error:
|
Beta Was this translation helpful? Give feedback.
-
if it is working with short-lived token so how can we manage short-lived token after it expire? Any solutions for token using that we dont need to add token manually when site goes to production mode. |
Beta Was this translation helpful? Give feedback.
-
App Authentication (Access key with Secret) only works on a couple of endpoints as per the http documentation
You need to do everything else with a valid user token. If it's your own user token, it can be generated as non-expiring via your App console. If it's other user tokens you need to use the token refresh methods as documented in the readme. Cheers. |
Beta Was this translation helpful? Give feedback.
-
See above linked dropbox documentation. In my process, i fetch an offline token.
|
Beta Was this translation helpful? Give feedback.
-
I am having the same issue. The endpoint "List Folder" is covered by App Authentication but does not work with this package. The error message I get is
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
See #75 |
Beta Was this translation helpful? Give feedback.
-
Can you give an example?
|
Beta Was this translation helpful? Give feedback.
-
I had tried to put the code from https://www.dropbox.com/oauth2/authorize?client_id=%5BAPP_KEY%5D&response_type=code&token_access_type=offline to use as access token but it does not work. |
Beta Was this translation helpful? Give feedback.
-
@juliocoliveira here's an example of the implementation of the file
You should also have the .env variables:
How to get refresh token
Hope it helps |
Beta Was this translation helpful? Give feedback.
-
Ahm thanks. Very helpful. |
Beta Was this translation helpful? Give feedback.
-
Could someone please post a C# method to get the refresh token? |
Beta Was this translation helpful? Give feedback.
-
I'm converting some existing code to use your package because the old package locked us into Guzzle 6.x. So I already have an app key, app secret, and non-expiring access token.
According to your documentation, it looks like I should be able to supply the app key and app secret in an array to the constructor of Client, or I can provide the access token as a string. The access token as a string works to connect, but with the array of app key and app secret I get a Bad Request 400 error. My test code shown below:
Since I have it working with the access token, it's not critical for me that you fix this, but it did waste some of my time, so I thought I'd leave this here so you can take a look.
Beta Was this translation helpful? Give feedback.
All reactions