Instructions to Ask a Question
Click on the "Ask a Question" button and select the application for which you would like to ask questions.
We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.
The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!
🚀🚀Exclusive Discount Offer
🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) - View offer
🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer
From Dropbox: "Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed"
7. Retrieve a new short-lived access token whenever needed like this, e.g., using curl on the command line: (plug in the refresh token from step 5 in place of "REFRESHTOKENHERE", the app key in place of "APPKEYHERE", and the app secret in place of "APPSECRETHERE")
curl https://api.dropbox.com/oauth2/token \
-d refresh_token=REFRESHTOKENHERE \
-d grant_type=refresh_token \
-d client_id=APPKEYHERE \
-d client_secret=APPSECRETHERE
8. Use the returned short-lived access token to make API calls until it expires. For example, here's how a call to get the connected user information would look like: (plug in the new access token from step 7 in place of "ACCESSTOKENHERE")
curl -X POST https://api.dropboxapi.com/2/users/get_current_account \
--header "Authorization: Bearer ACCESSTOKENHERE"
You can refer to the following developer's guide on how you can manage the refresh token in your integration.However is there a way for PABBLY to handle getting the refreshed token or is there a better way to achieve this?
As we can see from our end the application is added to the platform correctly and it wouldn't be required to generate a refresh token.Would I use the app to get a refresh token? Or would I use the app to handle posting the data I was previously doing with the API directly?
If we reconnect it works again - but I'm pretty sure this has to do with dropbox requiring the 'app' to request a short-lived access token?{
"error_summary": "expired_access_token/...",
"error > .tag": "expired_access_token"
}
Hey @MasterMagic!
You need not have to pass the "token_access_type=offline" in the Parameter field instead of this kindly pass the query parameter in the Authorize URL field itself.
View attachment 20908
Thanks - I totally forgot I had actually tried this too. Here is my last attempt... That also did not seem to stay permanent... I also tried passing parameters for this:Hey @MasterMagic!
You need not have to pass the "token_access_type=offline" in the Parameter field instead of this kindly pass the query parameter in the Authorize URL field itself.
View attachment 20908