Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var request = require("request");
- var options = { method: 'GET',
- url: 'https://www.cristaisaquarius.com.br/admin/api/rest/orders/123',
- headers:
- { 'postman-token': '3e82e7c0-85a7-6979-d19c-2d2bfa0e1ff9',
- 'cache-control': 'no-cache',
- 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\\"',
- 'content-type': 'text/xml' } };
- request(options, function (error, response, body) {
- if (error) throw new Error(error);
- console.log(body);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement