I generated API token and refresh token using OAuth2.
Here is my information about the scopes,
Hi Ashrafuzzaman,
It appears that you are trying to call the Cloud site directly by its URL. However the guide in OAuth 2.0 (3LO) apps explains that first you have to get the Cloudid of the site,
curl --request GET \
--url https://api.atlassian.com/oauth/token/accessible-resources \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--header 'Accept: application/json'
Once you have the id, you can then Construct the request URL, from that point your call will look more closely related to this one:
curl --request GET \
--url https://api.atlassian.com/ex/jira/11223344-a1b2-3b33-c444-def123456789/rest/api/2/project \
--header 'Authorization: Bearer ACCESS_TOKEN' \
--header 'Accept: application/json'
Try this and see if that helps.
Andy
That was it. Thanks for helping
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.