Skip to content

Instantly share code, notes, and snippets.

@phoenixperry
Created February 16, 2015 13:30
Show Gist options
  • Save phoenixperry/2fc5c7ada529b2d41e35 to your computer and use it in GitHub Desktop.
Save phoenixperry/2fc5c7ada529b2d41e35 to your computer and use it in GitHub Desktop.
void ofApp::setup(){
ofHttpResponse resp = ofLoadURL("https://api.spark.io/v1/devices?access_token=7c3a17b73062e01cc52682cbf69a7941d17acb22");
//cout << resp.data << endl;
ofHttpResponse resp2 = ofLoadURL("https://api.spark.io/v1/devices/50ff6c065067545637110387/val?access_token=7c3a17b73062e01cc52682cbf69a7941d17acb22");
cout << resp2.data << endl;
//https://api.spark.io
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment