בית / API
API למשווקים
חברו את פאנל ה-SMM או האפליקציה שלכם ל-API v2 שלנו. כל הבקשות הן HTTP POST והתגובות ב-JSON.
| כתובת API | https://smmbuys.com.tr/api/v2 |
|---|---|
| שיטת HTTP | POST |
| מפתח API | הרשמה |
| פורמט תגובה | JSON |
action=services
| פרמטרים | |
|---|---|
key | מפתח API |
action | services |
דוגמת תגובה
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "Instagram Followers",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true,
"dripfeed": false
}
]
action=add
| פרמטרים | |
|---|---|
key | מפתח API |
action | add |
service | Service ID |
link | Link |
quantity | Quantity |
runs | Runs (optional) |
interval | Interval (optional) |
comments | Comments (custom comment services) |
דוגמת תגובה
{
"order": 23501
}
action=status
| פרמטרים | |
|---|---|
key | מפתח API |
action | status |
order | Order ID |
דוגמת תגובה
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
action=status
| פרמטרים | |
|---|---|
key | מפתח API |
action | status |
orders | Order IDs, comma separated (max 100) |
דוגמת תגובה
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
}
}
action=refill
| פרמטרים | |
|---|---|
key | מפתח API |
action | refill |
order | Order ID |
דוגמת תגובה
{
"refill": "1"
}
action=cancel
| פרמטרים | |
|---|---|
key | מפתח API |
action | cancel |
orders | Order IDs, comma separated (max 100) |
דוגמת תגובה
[
{
"order": 9,
"cancel": 1
},
{
"order": 2,
"cancel": {
"error": "Incorrect order ID"
}
}
]
action=balance
| פרמטרים | |
|---|---|
key | מפתח API |
action | balance |
דוגמת תגובה
{
"balance": "100.84",
"currency": "USD"
}
PHP
<?php
$ch = curl_init('https://smmbuys.com.tr/api/v2');
curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => http_build_query(['key' => 'YOUR_KEY', 'action' => 'add', 'service' => 1, 'link' => 'https://instagram.com/user', 'quantity' => 1000])]);
var_dump(json_decode(curl_exec($ch), true));