hubucket

Hubot-compatible BitBucket API wrapper for Node.js

A Hubot-compatible BitBucket API wrapper for Node.js

npm install hubucket

Use it in your Hubot script:

module.exports = (robot) ->
  bitbucket = require('hubucket')(robot)

Or use it on its own:

bitbucket = require('hubucket')

Make any call to the BitBucket v1.0 API, get the parsed JSON response:

bitbucket.get 'repositories/pyro2927/evernote2box/events/' (data) ->
    console.log data

If process.env.HUBOT_BITBUCKET_USER and process.env.HUBOT_BITBUCKET_PASSWORD are present, you're automatically authenticated. Sweet!