| Name | Type | Default | Description |
|---|---|---|---|
| username (required) | string | – | نام کاربری اکانت اینستاگرام |
| password (required) | string | – | رمز عبور اکانت اینستاگرام. |
| text (required) | string | – | متن پیامی که باید ارسال شود. |
| (required) user_ids | array | [] | لیستی از User ID اینستاگرام که پیام باید به آنها ارسال شود. (یک یا چند User ID) |
| thread_ids | array | [] | لیستی از شناسههای مکالمات (Threads) که پیام باید به آنها ارسال شود. (میتواند null باشد) |
مستندات BoxAPI
API جامع، کامل و ساده
Direct Send
- توضیحات
- ویدیوی آموزشی استفاده از APIها در Postman
- نمونه کد (Usage)
curl --request POST \
--url https://di.boxapi.ir/api/direct_send \
--user 'boxapi_username:boxapi_password' \
--data '{
"username": "your_instagram_username",
"password": "your_instagram_password",
"text": "your_message_text",
"user_ids": ["user_id_1", "user_id_2"],
"thread_ids": ["thread_id_1", "thread_id_2"]
}'
- نمونه پاسخ (Response example)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
