Hotel API
-
- Posts: 1
- Joined: 31 Jul 2021, 06:26
Re: Hotel API
I'm interested. What do you mean convert? Is this paid?
Re: Hotel API
You need to use winhttprequest.
For example to get jwt token You can do like this:
For example to get jwt token You can do like this:
Code: Select all
username := "login"
password := "pass"
HTTP := ComObjCreate("WinHTTP.WinHTTPRequest.5.1")
HTTP.Open("POST", "https://api.makcorps.com/auth", true)
HTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko")
HTTP.SetRequestHeader("Pragma", "no-cache")
HTTP.SetRequestHeader("Cache-Control", "no-cache, no-store")
HTTP.SetRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT")
HTTP.SetRequestHeader("Content-Type", "application/json")
HTTP.Send("{""username"":""" username """, ""password"":""" password """}")
HTTP.WaitForResponse()
msgbox % HTTP.ResponseText
Who is online
Users browsing this forum: No registered users and 193 guests