When I use this v1 Code it always says This variable appears to never be assigned a value (http Variable).
Code: Select all
try {
http := ComObjCreate("WinHttp.WinHttpRequest.5.1")
url := "https://api.pushed.co/1/push"
http.Open("POST", url, false)
http.SetRequestHeader("User-Agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)")
http.SetRequestHeader("Referer", url)
http.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
http.Send("app_key=" appKey "&app_secret=" appSecret "&target_type=app&content=" msg)
} catch e {
}