NodeJS Code Example

HTTP POST Request
POST
var request = require("request");

var options = { 
    method: 'POST',
    url: 'https://access.way2order.com/api/v1/requestaccesstoken',
    headers: { 
        'Content-Type': 'application/json' 
    },
    body: { 
        client_id: {client_id},
        client_secret: {client_secret} 
    },
    json: true 
};

request(options, function (error, response, body) {
    if (error) throw new Error(error);

    console.log(body);
});

Replace {client_id} & {client_secret} above, with your Client ID & Client Secret.

HTTP GET Request
GET
var request = require("request");

var options = { 
    method: 'GET',
    url: 'https://access.way2order.com/api/v1/getproducts',
    headers: { 
        'Content-Type': 'application/json', 
        Authorization: 'Bearer {access_token}' 
    } 
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

Replace {access_token} above, with the generated Access Token.