1.0.1 • Published 7 years ago
coinone v1.0.1
Coinone.com Node.js API V2 Wrapper
Please see documentation at:
###As Node module
const coinOne = require('coinone');
const ACCESS_TOKEN = 'get-from-coinone.co.kr';
const SECRET_KEY = 'get-from-coinone.co.kr';
const CoinOne = new coinOne(ACCESS_TOKEN, SECRET_KEY);
CoinOne.userInfo().then((r) => {
console.log(r);
});
###From Source
Create 'config.js' file with your token and secret.
module.exports = {
'token': 'get token at coinone.com',
'secret': 'get token at coinone.com'
}
Example usage:
const index = require('./index');
const config = require('./config');
const CoinOne = new index(config.token, config.secret);
CoinOne.userInfo().then((r) => {
console.log(r);
});