We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi There. I have a few students who are attempting to send a get request from processing to retrieve their SCRATCH cloud data. I have instructed them to use the following: GET https://scratch.mit.edu/varserver/105015849
The Processing.org sketch looks like this:
import http.requests.*;
GetRequest get = new GetRequest("https://scratch.mit.edu/varserver/105015849“);
get.send();
get.addHeader(”Accept“, ”application/json“);
println(”Response Content: " +get.getContent());
However, no response is provided. Any suggestions?
Answers
loadStrings() can take a url
https://processing.org/reference/loadStrings_.html
i wonder if loadJsonObject() can as well? (or just stick the results of the above into parseJsonObject() )