Invoke Rest api end point in LUA
问题 I need to invoke a Rest API endpoint from my Lua script. How can I do that? For example, I am able to invoke the endpoint by the below curl command: curl -X GET \ -H "X-Parse-Application-Id: ParseAppID" \ -H "X-Parse-REST-API-Key: RESTAPIKey" \ https://api.parse.com/1/classes/GameScore The same I wanted in Lua. 回答1: You have lots of options LuaSocket Lua-HTTP Lua-cURL (probably more) All of them are slightly different, but all of them can call your API endpoint. 回答2: Lua by itself cannot call