Skip to content

Microbrewit/microbrewit-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published