Skip to content

Instantly share code, notes, and snippets.

@bryceadams
Created April 17, 2016 23:57
Show Gist options
  • Save bryceadams/1dc94996b1d2ed879a72b88c3ba6a20a to your computer and use it in GitHub Desktop.
Save bryceadams/1dc94996b1d2ed879a72b88c3ba6a20a to your computer and use it in GitHub Desktop.
// Print
var Client = require('node-rest-client').Client;
var client = new Client();
var args = {
data: {
"command": "select",
"print": true
},
headers: {
"X-Api-Key": "<yourapikey>",
"Content-Type": "application/json"
}
}
client.post("http://192.168.1.103/api/files/local/" + itemName + ".gco", args, function (data, response) {
console.log(response);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment