Configurazione Script Like
Questa pagina documenta i parametri di configurazione dello script like.
Panoramica
Lo script like mette automaticamente like ai post su TikTok o Instagram. Con più URL target via API, viene creata un'attività per ogni URL. Controlla il timing con start_time.
Configurazione Script (script_config)
Parametri per lo script like:
Parametri
| Parametro | Tipo | Richiesto | Default | Descrizione |
|---|---|---|---|---|
| target_post_urls | string[] | Yes* | [] | Array di URL di post target (un'attività per URL) |
| target_post_url | string | Yes* | "" | URL singolo o più URL separati da newline/virgole |
| access_method | string | No | "direct" | Come navigare al post: direct (URL) |
L'array target_post_urls o la stringa target_post_url deve essere fornita. Se entrambi, target_post_urls ha priorità.
Con più URL target, l'API crea un'attività per URL. 3 URL + 2 dispositivi = 6 attività.
Esempi
Mettere like a un post
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"
}
}'
Mettere like a più post
Un'attività per post:
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"
]
}
}'
Crea 3 attività separate eseguite immediatamente.
Pianificare like con orario di inizio
Usa start_time per pianificare:
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"
}'
Like via lista username
Crea attività di like per account specifici:
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"
}
}'
Like in batch su più dispositivi
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
}'
Esempio Instagram
La stessa API per post 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/"
}
}'
Risposta
{
"code": 0,
"message": "success",
"data": {
"task_ids": [401, 402, 403],
"created_count": 3
}
}
Formati URL Post
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/
Buone Pratiche
-
Pianifica: Usa
start_timeper distribuire i like nel tempo. -
Raggruppa: Non creare troppe attività contemporaneamente.
-
Multi-account: Abilita
enable_multi_account.
Codici di Errore
| Code | Description |
|---|---|
| 40001 | URL post target mancante |
| 40003 | Script non supportato via API |
| 40301 | Piano Pro+ richiesto |