Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bitbucket API 2.0 - list of private repositories

It is possible to get all user repositories using Bitbucket API 2.0 including private repositories? When I use https://api.bitbucket.org/2.0/repositories/{username} i got only public.

like image 216
Łukasz Strzałka Avatar asked May 19 '17 12:05

Łukasz Strzałka


1 Answers

Resolved, just have to get access token from bitbucket and send GET to https://api.bitbucket.org/2.0/repositories with Authorization: Bearer {YOUR ACCESS TOKEN}.

like image 195
Łukasz Strzałka Avatar answered Sep 24 '22 06:09

Łukasz Strzałka