# @absolunet/bitbucket-api

> Bitbucket API wrapper via OAuth2

Latest version **2.0.0** (published 2021-04-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @absolunet/bitbucket-api
pnpm add @absolunet/bitbucket-api
yarn add @absolunet/bitbucket-api
bun add @absolunet/bitbucket-api
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-04-19 |
| First published | 2019-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12 |
| Dependencies | 4 |
| Unpacked size | 15.1 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Absolunet |
| Maintainers | absolunet-admin, jblandry, tparent-abso |
| Keywords | api, bitbucket, oauth, oauth2 |

## Links

- npm: https://www.npmjs.com/package/@absolunet/bitbucket-api
- Repository: https://github.com/absolunet/node-bitbucket-api
- Issues: https://github.com/absolunet/node-bitbucket-api/issues
- npm.io page: https://npm.io/package/@absolunet/bitbucket-api

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [simple-oauth2](https://npm.io/package/simple-oauth2.md) ^4.2.0
- [@absolunet/joi](https://npm.io/package/@absolunet/joi.md) ^0.3.0
- [@absolunet/private-registry](https://npm.io/package/@absolunet/private-registry.md) ^2.0.0

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-04-19
- 1.2.0 — 2020-06-16
- 1.1.0 — 2019-06-25
- 1.0.0 — 2019-03-14

## README

# @absolunet/bitbucket-api

[![npm][npm-badge]][npm-url]
[![npm dependencies][dependencies-badge]][dependencies-url]
[![Tests][tests-badge]][tests-url]
[![npms][npms-badge]][npms-url]
[![License: MIT][license-badge]][license-url]

> [Bitbucket API](https://developer.atlassian.com/bitbucket/api/2/reference/) wrapper via OAuth2

Authenticate to Bitbutcket APIv2 via OAuth2 then call API directly


## Install

```sh
$ npm install @absolunet/bitbucket-api
```


## Usage

```js
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](https://documentation.absolunet.com/node-bitbucket-api) for an in-depth look.

See the [Changelog](CHANGELOG.md) to see what has changed.


## Contribute

See the [Contributing Guidelines](CONTRIBUTING.md) for ways to get started.

See the [Support Guide](SUPPORT.md) for ways to get help.

See the [Security Policy](SECURITY.md) for sharing vulnerability reports.

This project has a [Code of Conduct](CODE_OF_CONDUCT.md).
By interacting with this repository, organization, or community you agree to abide by its terms.


## License

[MIT](LICENSE) © [Absolunet](https://absolunet.com)




[npm-badge]:          https://img.shields.io/npm/v/@absolunet/bitbucket-api?style=flat-square
[dependencies-badge]: https://img.shields.io/david/absolunet/node-bitbucket-api?style=flat-square
[tests-badge]:        https://img.shields.io/github/workflow/status/absolunet/node-bitbucket-api/tests/master?label=tests&style=flat-square
[npms-badge]:         https://badges.npms.io/%40absolunet%2Fbitbucket-api.svg?style=flat-square
[license-badge]:      https://img.shields.io/badge/license-MIT-green?style=flat-square

[npm-url]:          https://www.npmjs.com/package/@absolunet/bitbucket-api
[dependencies-url]: https://david-dm.org/absolunet/node-bitbucket-api
[tests-url]:        https://github.com/absolunet/node-bitbucket-api/actions?query=workflow%3Atests+branch%3Amaster
[npms-url]:         https://npms.io/search?q=%40absolunet%2Fbitbucket-api
[license-url]:      https://opensource.org/licenses/MIT

---
_Source: https://npm.io/package/@absolunet/bitbucket-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
