Bu dökümantasyon, TwxFollowers'in SMM panel API'sinin nasıl kullanılacağını detaylandırmaktadır. Aşağıdaki bölümlerde API'nin temel bilgileri ve her bir uç nokta için gerekli parametreler, örnek istekler ve örnek cevaplar yer almaktadır.
HTTP Method: POST
API URL: https://twxcompany.com/api/v2
Response Format: JSON
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | services (sabit değer) |
[
{
"service": 1,
"name": "Followers",
"type": "Default",
"category": "First Category",
"rate": "0.90",
"min": "50",
"max": "10000",
"refill": true,
"cancel": true
},
{
"service": 2,
"name": "Comments",
"type": "Custom Comments",
"category": "Second Category",
"rate": "8",
"min": "10",
"max": "1500",
"refill": false,
"cancel": true
}
]
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | add (sabit değer) |
service | Service ID |
link | Link to page |
quantity | Needed quantity |
runs (optional) | Runs to deliver |
interval (optional) | Interval in minutes |
İstek Örneği (POST):
POST /api/v2
Content-Type: application/json
{
"key": "YOUR_API_KEY",
"action": "add",
"service": "SERVICE_ID",
"link": "https://example.com",
"quantity": 100,
"runs": 1,
"interval": 5
}
{
"order": 23501
}
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | status (sabit değer) |
order | Order ID |
{
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
}
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | status (sabit değer) |
orders | Order IDs (virgülle ayrılmış, up to 100 IDs) |
{
"1": {
"charge": "0.27819",
"start_count": "3572",
"status": "Partial",
"remains": "157",
"currency": "USD"
},
"10": {
"error": "Incorrect order ID"
},
"100": {
"charge": "1.44219",
"start_count": "234",
"status": "In progress",
"remains": "10",
"currency": "USD"
}
}
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | refill (sabit değer) |
order | Order ID |
Not: Refilling işlemi için, siparişin ilişkili olduğu servisin refill
değeri true olmalıdır, aksi takdirde hata döndürülür.
{
"refill": "1"
}
Parametreler:
key
, action
(refill
) ve orders
(virgülle ayrılmış Order IDs, up to 100 IDs)
Not: Her sipariş için, ilgili servisin refill
değeri true olmalıdır; aksi takdirde ilgili sipariş için hata döndürülür.
[
{
"order": 1,
"refill": 1
},
{
"order": 2,
"refill": 1
},
{
"order": 3,
"refill": {
"error": "Refill not allowed"
}
}
]
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | refill_status (sabit değer) |
refill | Refill ID |
Not: Refill işlemi başarılı ise durum "Completed" olarak döndürülür.
{
"status": "Completed"
}
Parametreler:
key
, action
(refill_status
) ve refills
(virgülle ayrılmış Refill IDs, up to 100 IDs)
Not: Her refill için durum güncellemesi "Completed" olarak döndürülmektedir.
[
{
"refill": 1,
"status": "Completed"
},
{
"refill": 2,
"status": "Completed"
},
{
"refill": 3,
"status": {
"error": "Refill not found"
}
}
]
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | cancel (sabit değer) |
orders | Order IDs (virgülle ayrılmış, up to 100 IDs) |
Not: Cancel işlemi için, siparişin ilişkili olduğu serviste cancel
değeri true olmalıdır, aksi takdirde hata döndürülür.
[
{
"order": 9,
"cancel": {
"error": "Cancel not allowed"
}
},
{
"order": 2,
"cancel": 1
}
]
Parametreler:
Parametre | Açıklama |
---|---|
key | Your API key |
action | balance (sabit değer) |
{
"balance": "100.84292",
"currency": "USD"
}