Hello
I try to makt the first steps with the Bitbucket API but i fail by the first step. (Frustration is maixmal)
I try to make ue the sample of the documentation and try to use the curl-command:
curl -H "Authorization: Bearer ATATT..." https://api.bitbucket.org/2.0/repositories/<emailadress X>/<repositoryname>/commits
The result is: Token is invalid or not supported for this endpoint
So how i get the API token:
After i logged into bitbucket with user X, i went to the gear in the top right corner. there i went to "Atlassian account setting" and there to the security tab. on this page i was then able to access the API token creation & management page. I then generated the API token there and used it for the curl command.
I made the token url-capable beforehand (mapped the characters url-compliant). I used exactly the same email address as I used to create the api token.
What am I doing wrong here?
Best regards
Lorenzo