API 文件

透過程式整合我們的服務。

API 文件

HTTP 方法 POST
API 網址 https://fans-morelike.com/api/v2
回應格式 JSON

服務列表

參數 說明
key 您的 API 金鑰
action services

回應範例

[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000",
        "refill": true
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500",
        "refill": false
    }
]

新增訂單

回應範例

{
    "order": 23501
}

訂單狀態

參數 說明
key 您的 API 金鑰
action status
order 訂單編號

回應範例

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

多筆訂單狀態

參數 說明
key 您的 API 金鑰
action status
orders 訂單編號,以逗號分隔

回應範例

{
    "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"
    }
}

建立補量

參數 說明
key 您的 API 金鑰
action refill
order 訂單編號

回應範例

{
    "refill": "1"
}

查詢補量狀態

參數 說明
key 您的 API 金鑰
action refill_status
refill 補量編號

回應範例

{
    "status": "Completed"
}

帳戶餘額

參數 說明
key 您的 API 金鑰
action balance

回應範例

{
    "balance": "100.84292",
    "currency": "USD"
}
PHP 程式碼範例