تجارب مجانية: اطّلع على الشروط عرض التجارب

الاتصال

طريقة HTTP
POST
رابط API
https://onesmm.com/api/v2
تنسيق الاستجابة
JSON

servicesقائمة الخدمات

المعامل الوصف
key مفتاح API الخاص بك
action services
مثال على الاستجابة
[
    {
        "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
    }
]

addإضافة طلب

مثال على الاستجابة
{
    "order": 23501
}

statusحالة الطلب

المعامل الوصف
key مفتاح API الخاص بك
action status
order معرّف الطلب
مثال على الاستجابة
{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

multi_statusحالات طلبات متعددة

المعامل الوصف
key مفتاح API الخاص بك
action status
orders معرّفات الطلبات (مفصولة بفواصل، حتى 100 معرّف)
مثال على الاستجابة
{
    "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"
    }
}

refillإنشاء طلب تعويض

المعامل الوصف
key مفتاح API الخاص بك
action refill
order معرّف الطلب
مثال على الاستجابة
{
    "refill": "1"
}

multi_refillإنشاء طلبات تعويض متعددة

المعامل الوصف
key مفتاح API الخاص بك
action refill
orders معرّفات الطلبات (مفصولة بفواصل، حتى 100 معرّف)
مثال على الاستجابة
[
    {
        "order": 1,
        "refill": 1
    },
    {
        "order": 2,
        "refill": 2
    },
    {
        "order": 3,
        "refill": {
            "error": "Incorrect order ID"
        }
    }
]

refill_statusالحصول على حالة التعويض

المعامل الوصف
key مفتاح API الخاص بك
action refill_status
refill معرّف التعويض
مثال على الاستجابة
{
    "status": "Completed"
}

multi_refill_statusالحصول على حالات تعويضات متعددة

المعامل الوصف
key مفتاح API الخاص بك
action refill_status
refills معرّفات التعويض (مفصولة بفواصل، حتى 100 معرّف)
مثال على الاستجابة
[
    {
        "refill": 1,
        "status": "Completed"
    },
    {
        "refill": 2,
        "status": "Rejected"
    },
    {
        "refill": 3,
        "status": {
            "error": "Refill not found"
        }
    }
]

cancelإنشاء طلب إلغاء

المعامل الوصف
key مفتاح API الخاص بك
action cancel
orders معرّفات الطلبات (مفصولة بفواصل، حتى 100 معرّف)
مثال على الاستجابة
[
    {
        "order": 9,
        "cancel": {
            "error": "Incorrect order ID"
        }
    },
    {
        "order": 2,
        "cancel": 1
    }
]

balanceرصيد المستخدم

المعامل الوصف
key مفتاح API الخاص بك
action balance
مثال على الاستجابة
{
    "balance": "100.84292",
    "currency": "USD"
}