Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Github API access, tailored for Hubot

This branch is 2 commits ahead, 62 commits behind iangreenleaf:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
Makefile
Readme.md
hubucket.coffee
package.json
test.coffee

Readme.md

A Hubot-compatible BitBucket API wrapper for Node.js

Install

npm install hubucket

Require

Use it in your Hubot script:

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

Or use it on its own:

bitbucket = require('hubucket')

Use

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

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

Authentication

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

Something went wrong with that request. Please try again.