การกำหนดค่าสคริปต์ไลค์
หน้านี้บันทึกพารามิเตอร์การกำหนดค่าสคริปต์ like
ภาพรวม
สคริปต์ like กดไลค์โพสต์โดยอัตโนมัติบน TikTok หรือ Instagram เมื่อระบุ URL หลายรายการผ่าน API สร้างงานหนึ่งงานต่อ URL ควบคุมเวลาด้วย start_time
การกำหนดค่าสคริปต์ (script_config)
พารามิเตอร์สำหรับสคริปต์ไลค์:
พารามิเตอร์
| พารามิเตอร ์ | ชนิด | จำเป็น | ค่าเริ่มต้น | คำอธิบาย |
|---|---|---|---|---|
| target_post_urls | string[] | Yes* | [] | อาร์เรย์ URL เป้าหมายสำหรับไลค์ (หนึ่งงานต่อ URL) |
| target_post_url | string | Yes* | "" | URL เดียวหรือหลาย URL คั่นด้วยบรรทัดใหม่/จุลภาค |
| access_method | string | No | "direct" | วิธีนำทาง: direct (ผ่าน URL) |
note
ต้องระบุ target_post_urls หรือ target_post_url หากระบุทั้งคู่ target_post_urls มีความสำคัญกว่า
info
เมื่อระบุหลาย URL API สร้าง หนึ่งงานต่อ URL 3 URL + 2 อุปกรณ์ = 6 งาน
ตัวอย่าง
ไลค์โพสต์เดียว
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890"
}
}'
ไลค์หลายโพสต์
สร้างงานหนึ่งต่อโพสต์:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_urls": [
"https://www.tiktok.com/@user1/video/111",
"https://www.tiktok.com/@user2/video/222",
"https://www.tiktok.com/@user3/video/333"
]
}
}'
สร้าง 3 งานแยกต่างหากที่ดำเนินการทันที
กำหนดการไลค์ด้วยเวลาเริ่มต้น
ใช้ start_time เพื่อกำหนดการ:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@username/video/1234567890"
},
"start_time": "14:30"
}'
ไลค์ตามรายชื่อผู้ใช้
สร้างงานไลค์สำหรับบัญชีเฉพาะโดยตรง:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"usernames": ["@my_account1", "@my_account2"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@target/video/123"
}
}'
ไลค์แบบกลุ่มบนหลายอุปกรณ์
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_1", "device_2", "device_3"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.tiktok.com/@viral/video/999"
},
"enable_multi_account": true
}'
ตัวอย่าง Instagram
API เดียวกันสำหรับ Instagram:
curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "like",
"script_config": {
"target_post_url": "https://www.instagram.com/p/ABC123/"
}
}'
การตอบสนอง
{
"code": 0,
"message": "success",
"data": {
"task_ids": [401, 402, 403],
"created_count": 3
}
}
รูปแบบ URL
TikTok
https://www.tiktok.com/@username/video/1234567890123456
https://vm.tiktok.com/ABCDEFG/
Instagram
https://www.instagram.com/p/ABCDEFGHIJK/
https://www.instagram.com/reel/ABCDEFGHIJK/
แนวปฏิบัติที่ดีที่สุด
-
กำหนดการงาน: ใช้
start_timeเพื่อกระจายการไลค์ -
จัดกลุ่มอย่างชาญฉลาด: ไม่สร้างงานมากเกินไปในครั้งเดียว
-
หลายบัญชี: เปิดใช้งาน
enable_multi_account