Skip to content

Instantly share code, notes, and snippets.

@t-kashima
Last active December 18, 2015 03:49
Show Gist options
  • Save t-kashima/5721040 to your computer and use it in GitHub Desktop.
Save t-kashima/5721040 to your computer and use it in GitHub Desktop.
HTTP.Request request = new HTTP.Request( "get", "echo.php?data=test");
request.synchronous = true;
request.Send((data) => {
print(data.response.Text);
JSONObject json = new JSONObject(data.response.Text);
int status = int.Parse(json.GetField("status").ToString());
if (status == 200) {
JSONObject responseObj = json.GetField("response");
print (AES.decrypt(responseObj.str));
} else {
print ("Failed load data");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment