MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

listPermissions question #40

Open yuliabaron opened 5 years ago

yuliabaron commented 5 years ago

Hi, I've noticed that repositories.listPermissions endpoint returns much more values than https://api.bitbucket.org/2.0/user/permissions/repositories/. In my test listPermissions returned 45 repos, while /2.0/user/permissions/repositories only returned 10 (and I expected 10). Could you check?

I'm using version 1.15.1

Thanks!

MunifTanjim commented 5 years ago

repositories.listPermissions is correctly sending request to the https://api.bitbucket.org/2.0/user/permissions/repositories url.

Your finding might be caused by your authentication method. Since you haven't mentioned details about your testing, I can't say anything for sure.

Set the following environment variable for getting details about the requests made by this library: DEBUG=bitbucket

yuliabaron commented 4 years ago

Thanks. I've enabled debug and I indeed see the correct endpoint is called. I'll investigate more. Will update if further help is needed