Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# airscript
-- Sample script to make an HTTP request with query parameters
local response = http.request {
url = '',
params = {
num=1, min=0, max=1, format='plain',
rnd='new', col=1, base=10
if tonumber(response.content) == 0 then
return 'heads'
return 'tails'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.