Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 841 Bytes

File metadata and controls

24 lines (17 loc) · 841 Bytes

microbrewit-node

Official Node library for interacting with the Microbrew.it API.

This library tries to wrap the enpoints detailed in the API Documentation.

All microbrewit-node methods are async, and follow the standard Node.js convention of callback(err, httpResponse, body).

Usage

Require mbit:

    mbit = (require 'microbrewit-node').init
        clientId: 'your Microbrew.it API token'
        clientSecret: 'your secret'
        authUrl: '' # optional: the authentication server to use
        apiUrl: '' # optional: the API url to use
*Not all endpoints require a clientID.*

Get Hop with ID 16: `mbit.hops.get(16, callback)`.

**Login**
```mbit.http.authenticate({ username: '', password: ''}, callback)```

See the [API Documentation](http://api.microbrew.it) to see available endpoints.