Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var request = require("request");
  2.  
  3. var options = { method: 'GET',
  4.   url: 'https://www.cristaisaquarius.com.br/admin/api/rest/orders/123',
  5.   headers:
  6.    { 'postman-token': '3e82e7c0-85a7-6979-d19c-2d2bfa0e1ff9',
  7.      'cache-control': 'no-cache',
  8.      authorization: 'OAuth oauth_consumer_key=\\"1fb00580fc15960f36af2407f2945034\\",oauth_token=\\"a7290ed331da9e2a972c5ed79166668a\\",oauth_signature_method=\\"HMAC-SHA1\\",oauth_timestamp=\\"1519217726\\",oauth_nonce=\\"KfeyqD\\",oauth_version=\\"1.0\\",oauth_signature=\\"G2ccsbcb2QOPQ61MA7fKCjAp688%3D\\"',
  9.      'content-type': 'text/xml' } };
  10.  
  11. request(options, function (error, response, body) {
  12.   if (error) throw new Error(error);
  13.  
  14.   console.log(body);
  15. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement