Skip to content

Instantly share code, notes, and snippets.

@Pent
Created August 28, 2013 17:52
Show Gist options
  • Select an option

  • Save Pent/6369067 to your computer and use it in GitHub Desktop.

Select an option

Save Pent/6369067 to your computer and use it in GitHub Desktop.
coinbase api access
coinbase: function(to) {
Meteor.http.get('https://coinbase.com/api/v1/prices/buy', function(error, response) {
if (response.statusCode === 200) {
var data = response.data;
if(data.currency) {
Bot.say(to, 'Coinbase BTC: ' + data.amount + ' ' + data.currency);
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment