Skip to content

Instantly share code, notes, and snippets.

@syyama
Created July 31, 2015 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syyama/ac5516bcfaa4fea14a9f to your computer and use it in GitHub Desktop.
Save syyama/ac5516bcfaa4fea14a9f to your computer and use it in GitHub Desktop.
webscript.io で使える適当なサンプルプログラム
local jsonRequest = json.parse(request.body)
local _name = jsonRequest.name
local _age = jsonRequest.age
if _name ~= nil and _age ~= nil then
return {
ResultCode = 0,
Data = {
name = _name,
age = _age
}
}
else
return { ResultCode = 9 }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment