Like-script Configuratie
Deze pagina documenteert de configuratieparameters voor het like-script.
Overzicht
Het like-script liket automatisch berichten op TikTok of Instagram. Met meerdere doel-URLs via de API, wordt één taak per URL aangemaakt. Beheer timing met start_time.
Scriptconfiguratie (script_config)
Configuratieparameters voor het like-script:
Parameters
| Parameter | Type | Vereist | Standaard | Beschrijving |
|---|---|---|---|---|
| target_post_urls | string[] | Yes* | [] | Array van doel-URLs om te liken (één taak per URL) |
| target_post_url | string | Yes* | "" | Enkelvoudige URL of meerdere URLs gescheiden door regeleinden/komma's |
| access_method | string | No | "direct" | Navigatie naar bericht: direct (via URL) |
target_post_urls-array of target_post_url-string moet worden opgegeven. Als beide, heeft target_post_urls prioriteit.
Met meerdere URLs maakt de API één taak per URL. 3 URLs + 2 apparaten = 6 taken.
Voorbeelden
Één bericht liken
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"
}
}'
Meerdere berichten liken
Één taak per bericht:
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"
]
}
}'
Maakt 3 afzonderlijke taken direct uitvoerbaar.
Likes plannen met begintijd
Gebruik start_time om te plannen:
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"
}'
Liken via gebruikersnaamlijst
Like-taken voor specifieke accounts:
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"
}
}'
Batch liken op meerdere apparaten
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 voorbeeld
Dezelfde API voor 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/"
}
}'
Reactie
{
"code": 0,
"message": "success",
"data": {
"task_ids": [401, 402, 403],
"created_count": 3
}
}
URL-formaten
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/
Aanbevolen Procedures
-
Plan taken: Gebruik
start_timeom likes te spreiden. -
Groepeer verstandig: Niet te veel taken tegelijk.
-
Multi-account: Schakel
enable_multi_accountin.
Foutcodes
| Code | Description |
|---|---|
| 40001 | Doel-URL ontbreekt |
| 40003 | Script niet ondersteund via API |
| 40301 | Pro+-abonnement vereist |