Skip to content

Instantly share code, notes, and snippets.

View Setheck's full-sized avatar
👀
hacking the gibson

Seth Setheck

👀
hacking the gibson
View GitHub Profile
var jmx = require("jmx");
var clients = [];
clients.push(
jmx.createClient({
host: "client1",
port: 12000
})
);
@Setheck
Setheck / gist:c6be75f7807c1f8d5b15
Created June 26, 2014 16:10
YO Api Test - NodeJs
var request = require('request')
, _ = require('underscore');
var apiToken = "XXXXXXXXXXXXXXX"
var requestOptions = {
url: "http://api.justyo.co/yoall/",
headers: { "Content-Type":"application/x-www-form-urlencoded" },
body: "api_token=" + apiToken
}