Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var totp = require('notp').totp;
- var base32 = require('thirty-two');
- const request = require('request');
- var apikey = '742f4c6f-fc31-40d9-926f-3d276f629466';
- // print out a code that's valid right now
- console.log(totp.gen(base32.decode('SECRET_SHOWN_BY_BITSKINS')));
- var code = totp.gen(base32.decode('SECRET_SHOWN_BY_BITSKINS'));
- request({
- uri: '/api/v1/get_all_item_prices/',
- baseUrl: 'https://bitskins.com/',
- json: true,
- qs: {
- api_key: apikey,
- code: code,
- app_id: '730'
- }
- }, function(err, res, body){
- if(err) throw err;
- console.log(body);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement