コンテンツへスキップ

API

APIドキュメント

アプリケーションをパネルAPIに接続する

接続

HTTPメソッド
POST
API URL
https://iamprovider.com/api/v2
回答形式
JSON

API キーとアカウント

API キーはサーバーに保管してください。正確なサービス ID を選択し、返された注文 ID を保存して、送信後に状態を確認してください。

サービス一覧

パラメータ説明
keyAPI キー
actionservices

回答例

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

注文の追加

パラメータ説明
keyAPI キー
actionadd
serviceサービス ID
linkページのリンク
quantity必要な数量
runs任意実行回数
interval任意間隔(分)

回答例

{
    "order": 23501
}

注文状況

パラメータ説明
keyAPI キー
actionstatus
order注文 ID

回答例

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

複数注文の状況

パラメータ説明
keyAPI キー
actionstatus
ordersカンマ区切りの注文 ID、最大 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"
    }
}

補充リクエストの作成

パラメータ説明
keyAPI キー
actionrefill
order注文 ID

回答例

{
    "refill": "1"
}

複数の補充リクエストの作成

パラメータ説明
keyAPI キー
actionrefill
ordersカンマ区切りの注文 ID、最大 100 件

回答例

[
    {
        "order": 1,
        "refill": 1
    },
    {
        "order": 2,
        "refill": 2
    },
    {
        "order": 3,
        "refill": {
            "error": "Incorrect order ID"
        }
    }
]

補充状況の確認

パラメータ説明
keyAPI キー
actionrefill_status
refill補充 ID

回答例

{
    "status": "Completed"
}

複数の補充状況の確認

パラメータ説明
keyAPI キー
actionrefill_status
refillsカンマ区切りの補充 ID、最大 100 件

回答例

[
    {
        "refill": 1,
        "status": "Completed"
    },
    {
        "refill": 2,
        "status": "Rejected"
    },
    {
        "refill": 3,
        "status": {
            "error": "Refill not found"
        }
    }
]

キャンセルのリクエスト

パラメータ説明
keyAPI キー
actioncancel
ordersカンマ区切りの注文 ID、最大 100 件

回答例

[
    {
        "order": 9,
        "cancel": {
            "error": "Incorrect order ID"
        }
    },
    {
        "order": 2,
        "cancel": 1
    }
]

アカウント残高

パラメータ説明
keyAPI キー
actionbalance

回答例

{
    "balance": "100.84292",
    "currency": "USD"
}

次のページを探す

Tabキーで選択 · Enterキーで開く · Escキーで閉じる