- My first access token get expired, now I want a new token without any User interface.
- I tried below in terminal,
curl -X POST -u "{key}:{secret}" https://bitbucket.org/site/oauth2/access_token -d <br>grant_type=refresh_token -d refresh_token={refresh_token}but getting, below error
{"error_description": "Invalid refresh_token", "error": "invalid_request"}
Questions :
1. What parameter should we pass to refresh_token? we need a new access token then why need this field?
I tried, expired token and new access token(created using UI) as well but it not worked
Please help me to understand what parameter should we pass to the refresh_token
And how can I generate new token using terminal/curl
Thanks