تكوين نص الملف الشخصي
توثّق هذه الصفحة معاملات التكوين لنص profile المستخدم في إنشاء المهام.
نظرة عامة
يُستخدم نص profile لتحديث ملف تعريف TikTok أو Instagram أو Threads تلقائيًا. يدعم Threads تحديث الصورة الرمزية والاسم والسيرة الذاتية ورابط URL. اسم المستخدم مملوك لحساب Instagram المرتبط، لذلك يتم تسجيل وتخطي إدخالات username_to / usernames على Threads بدلاً من تغيير اسم المستخدم المشترك بشكل غير متوقع.
Script Configuration (script_config)
The script_config object contains the parameters for the profile script. Below are the available parameters:
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| username | string | No | "" | The username of the account whose profile to update. Used in device-based mode. |
| avatars_path | string | No | "" | Path to a folder containing avatar images. Leave empty to skip avatar update. |
| nickname | string | No | "" | Single nickname to set. Takes priority over nicknames. |
| nicknames | string | No | "" | Multiple nicknames separated by newlines. One is selected based on profile_order. |
| username_to | string | No | "" | New username to set. Takes priority over usernames. |
| usernames | string | No | "" | Multiple new usernames separated by newlines. One is selected based on profile_order. |
| bio | string | No | "" | Single bio text to set. Takes priority over bios. |
| bios | string | No | "" | Multiple bio texts separated by newlines. One is selected based on profile_order. |
| link_url | string | No | "" | Single link URL to set. Takes priority over link_urls. |
| link_urls | string | No | "" | Multiple link URLs separated by newlines. One is selected based on profile_order. |
| profile_order | string | No | "random" | How to select content when using multi-value fields: random or sequential. |
| job_count | integer | No | 0 | Job counter used for sequential selection. Automatically set by the system. |
ملاحظة
At least one of the profile fields (avatar, nickname, username_to, bio, link_url) should be provided. Otherwise the script will run but make no changes.
Examples
Update Nickname
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "profile",
"script_config": {
"username": "@my_account",
"nickname": "My New Nickname"
}
}'