Created
July 31, 2015 09:30
-
-
Save syyama/ac5516bcfaa4fea14a9f to your computer and use it in GitHub Desktop.
webscript.io で使える適当なサンプルプログラム
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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