Hi everyone, I need some help with using API (I don’t have any knowledge in coding).
I use autohotkey file to run the script like this:
AddToDynalist() {
InputBox, UserInput, Task,Add to Dynalist inbox:,,350,125
If (!ErrorLevel and UserInput <> "")
{
; UserInput := UriEncode(UserInput)
URL := "https://dynalist.io/api/v1/doc/edit"
HttpObj := ComObjCreate("WinHttp.WinHttpRequest.5.1")
HttpObj.Open("POST", URL, 0)
HttpObj.SetRequestHeader("Content-Type", "application/json")
json_str := ({"token":jhbkashdiadadadadad,"file_id":dsaDadasdasddw,"changes":[{"action":insert,"parent_id":QLCcIAjcs7wLRlMvDcuFnByN,"content":"ssssssss","checked": false}]})
Body = json_str
HttpObj.Send(Body)
Result := HttpObj.ResponseText
Status := HttpObj.Status
}
}
Can anybody tell me what wrong with this script because I can run it but it won’t take effect.
Thanks for helping me!!