Jump to content

Recommended Posts

16 hours ago, Cunning fox said:

You mean send a request from the game? Yes, it's TheSim:QueryServer

Can you write example of POST usage?

i have tried

    TheSim:QueryServer(
        "http://localhost:3000/api/lobby/post/param/param/param/param/param/param/param/param/param", 
        function(json, isSuccess, code)
            if(isSuccess) then
                print(json)
                print(code)
            end
        end,
    "POST"
)

but its executing GET method

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...