kristianmandrup / bitbucket-api-v2

Bitbucket API v2 library
Other
10 stars 13 forks source link

implement basic authentication support #6

Closed MunifTanjim closed 6 years ago

MunifTanjim commented 6 years ago

5

const bitbucketApi = createBitbucketAPI({
  basicAuth: {
    username: 'Bitbucket Username',
    password: 'Password or Application Password (if 2FA enabled)'
  }
})

bitbucketApi.user.get((err, response) => {
  console.log(response)
})
kristianmandrup commented 6 years ago

Perfect! Thanks :)