Skip to content

Latest commit

 

History

History
executable file
·
39 lines (21 loc) · 1.26 KB

File metadata and controls

executable file
·
39 lines (21 loc) · 1.26 KB

This package is deprecated. Coinbase has released an official node library:

https://www.npmjs.com/package/coinbase

It supports both API keys and Oauth. Include it using meteorhacks:npm, and use Meteor.wrapAsync. See https://atmospherejs.com/idrism/accounts-coinbase for Oauth integration.

Build Status

Meteor wrapper for coinbase-api npm package.

coinbase-api npm package

Coinbase API

It was the most actively-maintained package when I searched in Jan 2015. There were no packages other than passport-coinbase that supported OAuth, and afaict no one has successfully integrated passport with Meteor. So if you need OAuth, I recommend using the oauth Meteor package, with the twitter package as a guide.

meteor add parlay:coinbase

Add to your .bashrc:

export COINBASE_KEY="[your key goes here]"
export COINBASE_SECRET="[secret here]"
coinbase = Coinbase({ api: process.env.COINBASE_KEY, secret: process.env.COINBASE_SECRET });


coinbase.addresses(function(error, data) {
    if (error) return console.log(error);

    console.log(data);
});