@absolunet/bitbucket-api

Bitbucket API wrapper via OAuth2
Authenticate to Bitbutcket APIv2 via OAuth2 then call API directly
Install
$ npm install @absolunet/bitbucket-api
Usage
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}`);
Documentation
See the full documentation for an in-depth look.
See the Changelog to see what has changed.
Contribute
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.
License
MIT © Absolunet