Skip to content

Example Code

Luckshya edited this page Feb 21, 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_onDataReceived(tag, url, statusCode, response)
{
	print("Data received for request with tag " + tag);
}
Clone this wiki locally