I wanted to get a list of repositories in a workspace of BitBucket and found out such a command.
curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/{workspace}' --header 'Authorization: Bearer {token}' --header 'Accept: application/json'
I use a free plan of BitBucket and use for "Authorization" Basic authentication Because I had problems with oauth2. And now I use th
curl --request GET --url 'https://api.bitbucket.org/2.0/repositories/{workspace}' --header 'Authorization: Basic {app password}' --header 'Accept: application/json'
But still getting such an error:
Uauthorized
or Token is invalid or not supported for this endpoint
Has anyone faced such an issue or do you know any way how to perform that using any other ways (python ) ?