Socket
Socket
Sign inDemoInstall

@absolunet/bitbucket-api

Package Overview
Dependencies
21
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @absolunet/bitbucket-api

Bitbucket API wrapper via OAuth2


Version published
Weekly downloads
0
Maintainers
3
Install size
1.69 MB
Created
Weekly downloads
 

Changelog

Source

[2.0.0] - 2021-04-19

Added

  • .authenticated
  • .ensureAuthenticated()
  • .repositories.getUserRepository()
  • .repositories.createUserRepository()
  • Automatic authentication on calls if not authenticated
  • Add tests
  • API documentation

Changed

  • Export named properties
  • Calls return axios response object
  • Change argument validation from ow to joi
  • Maintenance updates

Readme

Source

@absolunet/bitbucket-api

npm npm dependencies Tests npms License: MIT

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

Keywords

FAQs

Last updated on 19 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc