Last updated

API Request Examples

cURL

$ curl -X GET \\
  https://fetch.yellowdogsoftware.com/api/v3/dimensions \\
    -H 'Authorization: Bearer {access token here}' \\
    -H 'Cache-Control: no-cache' \\
    -H 'Content-Type: application/json' \\

C# (RestSharp)

  var client = new RestClient("https://fetch.yellowdogsoftware.com/api/v3/dimensions");
  var request = new RestRequest(Method.GET);
  request.AddHeader("Cache-Control", "no-cache");
  request.AddHeader("Content-Type", "application/json");
  request.AddHeader("Authorization", "Bearer");
  IRestResponse response = client.Execute(request);

NodeJS

var http = require("https");

var options = {
  method: "GET",
  hostname: ["fetch", "yellowdogsoftware", "com"],
  path: ["api", "v3", "dimensions"],
  headers: {
    Authorization: "Bearer",
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
  },
};

var req = http.request(options, function (res) {
  var chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();