URL-адрес запроса


ПОЛУЧИТЬ
https://api.dotcom-monitor.com/config_api_v1/задачу/{task_id}

Параметры пути

поле Type Обязательно описание
task_id

струна

true

Уникальный идентификатор задачи мониторинга.

Чтобы просмотреть идентификатор задачи из учетной записи dotcom-monitor, откройте целевое устройство в списке диспетчера устройств для редактирования. В адресной строке браузера вы увидите что-то вроде:

https://user.dotcom-monitor.com/ClientID/DeviceEdit?pid=dc7f4ff2ca944dekjh1078b96707002&deviceId=63698&taskId=132834

taskId=132834 — это идентификатор задачи.

Подробные описания объектов и полей JSON для конкретного типа задач вы можете найти в соответствующих разделах:

Реакция на успех

Пример ответа для HTTP-задачи
{
    "Timeout": 0
    "RequestType": "GET"
    "Url": "http://localhost/"
    "Keyword1": "{[("Electronics"&"Motors"&"Fashion")|!"Toys"]}"
    "Keyword2": "{[("3lectron1cs"&"M0t0rs"&"Fash1on")|!"T0ys"]}"
    "Keyword3": "‘check this out"
    "UserName": ""
    "UserPass": ""
    "FullPageDownload": false
    "Download_Html": false
    "Download_Frames": false
    "Download_StyleSheets": false
    "Download_Scripts": false
    "Download_Images": false
    "Download_Objects": false
    "Download_Applets": false
    "Download_Additional": false
    "GetParams": [0]
    "PostParams": [0]
    "HeaderParams": [0]
    "PrepareScript": "//qwe"
    "DNSResolveMode": "Device Cached"
    "DNSserverIP": ""
    "Device_Id": 7644
    "Id": 16555
    "Task_Type_Id": 1
    "Name": "localhost"
}
Пример ответа для задачи UserView
{
    "Timeout": 0,
    "Script": "// script_version=3.0; everystep_version=0; date=1/19/2023; Chrome=104.0.5112.57; \nTabs.SetSize (1820, 490);\nDMBrowser tab0 = null;\nStep (1, \"Phone Number Availability Checker Online » Phone Number Monitoring - https://www.phonenumbermonitoring.com/\");\ntab0 = Tabs.NewTab ();\ntab0.GoTo (\"http://phonenumbermonitoring.com/\");\nTabs.SetSize (1820, 553);\ntab0.Link (\"//A[normalize-space(@TITLE)=\\\"Client Login\\\"]\", \"(//A[normalize-space(text())=\\\"Client Login\\\"])[1]\", \"/HTML/BODY/DIV[1]/DIV/HEADER/DIV[2]/DIV/DIV/DIV/DIV/DIV/A\").Click ();\nStep (2, \"Login - https://user.phonenumbermonitoring.com/client/#/login\");\ntab0.Navigating (\"https://user.phonenumbermonitoring.com/guest/ClientLogin.aspx\");\ntab0.Element (\"//H1[normalize-space()=\\\"Login\\\"]\", \"//H1[normalize-space(text())=\\\"Login\\\"]\", \"//H1\").Click ();\ntab0.KeywordAssert (\"Login\");\ntab0.TextField (\"//INPUT[@TYPE=\\\"text\\\"]\", \"//LABEL[normalize-space()=\\\"Username\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Password\\\"]/../preceding-sibling::DIV[1]//INPUT\").Click ();\ntab0.TextField (\"//INPUT[@TYPE=\\\"text\\\"]\", \"//LABEL[normalize-space()=\\\"Username\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Password\\\"]/../preceding-sibling::DIV[1]//INPUT\").TypeText (\"login1\");\ntab0.TextField (\"//INPUT[@TYPE=\\\"password\\\"]\", \"//LABEL[normalize-space()=\\\"Password\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Username\\\"]/../following-sibling::DIV[1]//INPUT\").Click ();\ntab0.TextField (\"//INPUT[@TYPE=\\\"password\\\"]\", \"//LABEL[normalize-space()=\\\"Password\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Username\\\"]/../following-sibling::DIV[1]//INPUT\").TypeText ((string) context.Password_0);\ntab0.Span (\"//SPAN[normalize-space()=\\\"Login\\\"]\", \"//SPAN[normalize-space(text())=\\\"Login\\\"]\", \"//BUTTON[@TYPE=\\\"submit\\\"]//SPAN\").Click ();\ntab0.TextField (\"//INPUT[@TYPE=\\\"password\\\"]\", \"//LABEL[normalize-space()=\\\"Password\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Username\\\"]/../following-sibling::DIV[1]//INPUT\").TypeText ((string) context.Password_1);\ntab0.Span (\"//SPAN[normalize-space()=\\\"Login\\\"]\", \"//SPAN[normalize-space(text())=\\\"Login\\\"]\", \"//BUTTON[@TYPE=\\\"submit\\\"]//SPAN\").Click ();\ntab0.TextField (\"//INPUT[@TYPE=\\\"text\\\"]\", \"//LABEL[normalize-space()=\\\"Username\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Password\\\"]/../preceding-sibling::DIV[1]//INPUT\").TypeText (\"vadimm1\");\ntab0.TextField (\"//INPUT[@TYPE=\\\"password\\\"]\", \"//LABEL[normalize-space()=\\\"Password\\\"]/..//INPUT\", \"//LABEL[normalize-space()=\\\"Username\\\"]/../following-sibling::DIV[1]//INPUT\").TypeText ((string) context.Password_2);\ntab0.Button (\"//SPAN[normalize-space()=\\\"Login\\\"]/..\", \"//BUTTON[@TYPE=\\\"submit\\\"]\", \"//PRX-BUTTON[@TYPE=\\\"submit\\\"]//BUTTON\").Click ();\nStep (3, \"Dashboard - https://user.phonenumbermonitoring.com/client/#/dashboard\");\ntab0.KeywordAssert (\"Dashboard\");",
    "ImageList": "",
    "BrowserEngine": "Chrome",
    "IsRIA": "NO",
    "RequireRepeatVisit": "NO",
    "WriteVideoOnEachMonitoring": "NO",
    "AbortOnError": "NO",
    "DNSResolveMode": "Device Cached",
    "DNSserverIP": "",
    "CustomDNSHosts": null,
    "base64dmuv": null,
    "Device_Id": 309224,
    "Id": 531165,
    "Task_Type_Id": 21,
    "Name": "http://phonenumbermonitoring.com/"
   
}