• Currently i working for read all order data through json api.
    I am getting the success response in postman but not working in node.
    here is not code which i have used to get the response, can someone let me know the flow which i have missing in it.

    var request = require("request");
    
    var options = { method: 'GET',
      url: 'https://mydomain.com/wc-api/v3/customers',
      qs:
       { oauth_consumer_key: '',
         oauth_signature_method: '',
         oauth_timestamp: '',
         oauth_nonce: '',
         oauth_version: '1.0',
         oauth_signature: '=' },
      headers:
       { 'postman-token': '',
         'cache-control': 'no-cache',
         authorization: '' },
      form: { '': '' } };
    
    request(options, function (error, response, body) {
      if (error) throw new Error(error);
    
      console.log(body);
    });

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘read order data through json api’ is closed to new replies.