AIWeavioПЛАТФОРМА АВТОМАТИЗАЦИИ

API-узлы

HTTP GET / POST с pure-нодами для чтения последнего ответа.

Send Get Request

api.send_get_requestexec

Отправляет 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

api.get_responsepure

Читает последний GET response.

In:

Out: Success:Bool, Status:Int, Response:String, Error:String

Get Response.Response → Text Contains("ok").

Send Post Request

api.send_post_requestexec

Отправляет 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

api.post_responsepure

Читает последний POST response.

In:

Out: Success:Bool, Status:Int, Response:String, Error:String

Post Response.Status → Compare Number == 200.

Send Notification

notify.sendexec

Отправляет сообщение в Telegram, Discord или похожий канал через webhook.

In: Webhook:String, Message:String, Attachment:String

Out: Success:Bool, Status:Int, Error:String

Send Notification(webhook, "Бот закончил квест").