Skip to content

Example Code

Luckshya edited this page Mar 23, 2020 · 3 revisions

Example code for squirrel script

local request = ::SqHTTP.GetRequest();
request.setURL("url here");
request.setTag("tag here");
request.sendGet();

// Event callback
function HTTP_OnResponse(tag, url, statusCode, response)
{
	print("Data received for request with tag " + tag);
}
Clone this wiki locally