Bamboo connector via OAuth2 and basic with Axios

Usage no npm install needed!

<script type="module">
  import absolunetBambooConnector from 'https://cdn.skypack.dev/@absolunet/bamboo-connector';



npm npm dependencies npms Travis CI Code style ESLint

Bitbucket API wrapper via OAuth2

Authenticate to Atlassian Bamboo API via OAuth2 or basic with Axios


$ npm install @absolunet/bamboo-connector


const BambooConnector = require('@absolunet/bamboo-connector');

const basicBamboo = new BambooConnector({
    auth: {
        type: 'basic',
        username: 'lkjhgfdsa',
        secret: 'mnbvcxz'
    url: 'https://bamboo.domain.com'
}); // axios instance

const oauthBamboo = new BambooConnector({
    auth: {
        type: 'oauth2',
        key: 'zyxwvutsrqponmlkji',
        secret: 'abcdefghijklmnopqrstuvwxyz012345'
    url: 'https://bamboo.domain.com'
}); // axios instance

Then, you can make direct API calls

    .then((results) => {
        // do wathever you want