bitpay / bitpay-public-client

A client library for the public facade of the BitPay API.
MIT License
3 stars 10 forks source link

Is this for front end or Node? #6

Open jeffski opened 7 years ago

jeffski commented 7 years ago

Is this for front end web site use? I can't see how to get started.

I can do the following with Node, installed via npm, which returns the rates:

var bitpay = require('bitpay-public-client');

var api = new bitpay();
api.getRates({}, function(err, res) {
    console.log(res);
});

I figured I'd be able to install via Bower, include the minimized script in my html page and call the API. I can't see how I can do that.

jeffski commented 7 years ago

I have created a pull request which fixes this issue and makes the API available in the browser: https://github.com/bitpay/bitpay-public-client/pulls