Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var totp = require('notp').totp;
  2. var base32 = require('thirty-two');
  3. const request = require('request');
  4. var apikey = '742f4c6f-fc31-40d9-926f-3d276f629466';
  5. // print out a code that's valid right now
  6. console.log(totp.gen(base32.decode('SECRET_SHOWN_BY_BITSKINS')));
  7. var code = totp.gen(base32.decode('SECRET_SHOWN_BY_BITSKINS'));
  8. request({
  9.     uri: '/api/v1/get_all_item_prices/',
  10.     baseUrl: 'https://bitskins.com/',
  11.     json: true,
  12.     qs: {
  13.         api_key: apikey,
  14.         code: code,
  15.         app_id: '730'
  16.     }
  17. }, function(err, res, body){
  18.     if(err) throw err;
  19.     console.log(body);
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement