Created
April 22, 2021 21:10
-
-
Save JoeGlines/15bab7896b7a39bb9e95d8dd15c6e35d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
;******************************************************* | |
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY | |
; Right now you can get a coupon code here: https://the-Automator.com/Learn | |
;******************************************************* | |
Payload={"filter":{"acctId":"44XXXX","serviceId":[],"msgFormat":[],"status":[1,2,192],"received":{"From":"1970-01-01T00:00:00.000Z","To":"1970-01-01T00:00:00.000Z"},"modified":{"From":"1970-01-01T00:00:00.000Z","To":"1970-01-01T00:00:00.000Z"},"originator":"","threadId":[],"eTo":[],"excludeMessages":[],"extraSql":"AND msg.thread_id IS NULL"},"options":{"doNotCallFlag":true,"contactId":true,"deepContactIdSearch":true,"offset":0,"limit":0,"orderColumn":"\"tdsReceived\"","orderDirection":"DESC"}} | |
oWindow := ComObject(9, ComObjQuery(WBGet(), "{332C4427-26CB-11D0-B483-00C04FD90119}", "{332C4427-26CB-11D0-B483-00C04FD90119}"), 1) | |
MsgBox % IsObject(oWindow) | |
msgbox % oWindow.title | |
xhr := oWindow.XMLHttpRequest() | |
xhr.open("POST", "https://800link.com/WebService/SSL/I800LinkVmMsgs.asmx/Load",1) | |
xhr.setRequestHeader("Content-Type", "application/json") | |
xhr.send(Payload) | |
while(xhr.ReadyState!=4) ;Wait for it to complete | |
Sleep,50 | |
msgbox % "response: " xhr.response | |
msgbox % "body: " xhr.responseBody | |
msgbox % "status: " xhr.Status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment