API-узлы
HTTP GET / POST с pure-нодами для чтения последнего ответа.
Send Get Request
Отправляет HTTP GET и сохраняет последний GET response.
In: Endpoint:String
Out: Success:Bool, Status:Int, Error:String
После выполнения читайте Get Response.
Send Get Request("https://api.site/status") → Get Response.
Get Response
Читает последний GET response.
In: —
Out: Success:Bool, Status:Int, Response:String, Error:String
Get Response.Response → Text Contains("ok").
Send Post Request
Отправляет HTTP POST и сохраняет последний POST response.
In: Endpoint:String, Body Type:String, Content Type:String, Body:String
Out: Success:Bool, Status:Int, Error:String
Body Type = raw / json / form, Content Type обычно application/json.
Send Post Request(webhook, json, application/json, "{\"event\":\"found\"}").
Post Response
Читает последний POST response.
In: —
Out: Success:Bool, Status:Int, Response:String, Error:String
Post Response.Status → Compare Number == 200.
Send Notification
Отправляет сообщение в Telegram, Discord или похожий канал через webhook.
In: Webhook:String, Message:String, Attachment:String
Out: Success:Bool, Status:Int, Error:String
Send Notification(webhook, "Бот закончил квест").