Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoke Rest api end point in LUA

Tags:

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.

like image 344
subrat padhi Avatar asked Jun 16 '26 04:06

subrat padhi


1 Answers

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.

like image 130
DarkWiiPlayer Avatar answered Jun 18 '26 21:06

DarkWiiPlayer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!