Bitbucket API wrapper via OAuth2
Authenticate to Bitbutcket APIv2 via OAuth2 then call API directly
$ npm install @absolunet/bitbucket-api
import { BitbucketAPI } from '@absolunet/bitbucket-api';
const bitbucket = new BitbucketAPI({
consumerKey: 'zyxwvutsrqponmlkji',
consumerSecret: 'abcdefghijklmnopqrstuvwxyz012345'
});
const { data } = await bitbucket.get('/repositories/{uuid}/my-project/commits');
console.log(data);
const { ssh } = await bitbucket.repositories.getUserRepository('my-project');
console.log(`The ssh url to my project is: ${ssh}`);
See the full documentation for an in-depth look.
See the Changelog to see what has changed.
See the Contributing Guidelines for ways to get started.
See the Support Guide for ways to get help.
See the Security Policy for sharing vulnerability reports.
This project has a Code of Conduct. By interacting with this repository, organization, or community you agree to abide by its terms.