API
API ドキュメント
すべての操作を 1 つの POST リクエストで:注文、ステータス、サービス一覧、残高。Perfect Panel と SmartPanel に対応。
アドレス
https://stream-promotion.ru/api/v2メソッド
POST形式
JSON通貨
USD既定値、設定で変更できます これはショップ API です。 視聴者コンフィギュレーターには 専用の APIがあり、アドレスも認証方式も異なります。キーは同じものです。
つまずきやすい三つの原因
- リクエストを GET で送信している。受け付けるのは POST のみです。
- パラメーターをアドレスに付けている。リクエスト本文に入れてください。
- User-Agent が未設定。Postman や curl での検証時は明示的に指定してください。
API 経由で送信した内容の責任はご自身にあります。接続前にメソッドの説明をお読みください。
キーの取得方法
- アカウントにログインします。
- 「API 設定」を開きます.
- キーとアドレスをコピーし、ご自身のパネルに登録します。
サービス一覧は API 設定で選んだ言語. 価格の通貨も同じ画面で選べます(既定は USD)。
クイックスタート
残高リクエストで接続を確認してください。最も簡単で、何も作成しません。
curl -X POST https://stream-promotion.ru/api/v2 \ -H "User-Agent: MyPanel/1.0" \ -d "key=あなたのキー" \ -d "action=balance"
<?php
$ch = curl_init('https://stream-promotion.ru/api/v2');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'MyPanel/1.0');
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'key' => 'あなたのキー',
'action' => 'balance',
]));
$res = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($res); import requests
res = requests.post(
"https://stream-promotion.ru/api/v2",
data={"key": "あなたのキー", "action": "balance"},
headers={"User-Agent": "MyPanel/1.0"},
timeout=30,
)
print(res.json()) const res = await fetch("https://stream-promotion.ru/api/v2", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "MyPanel/1.0",
},
body: new URLSearchParams({
key: "あなたのキー",
action: "balance",
}),
});
console.log(await res.json()); レスポンス
{
"status": "success",
"balance": "0.03",
"currency": "USD"
} メソッド
メソッドは action パラメーターで選びます。key は常に必須です。
注文を作成
主要なメソッドです。runs と interval で分割配信できます。1440 分間隔で 7 回なら、注文は一週間に分散します。
パラメーターはサービス種別によって変わります。一覧から選ぶと表が切り替わります。
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | add |
service必須 | 一覧のサービス ID |
link必須 | チャンネル・配信・ページの URL |
quantity必須 | 数量 |
runs任意 | 実行回数 |
interval任意 | 実行間隔(分)。整数:10、20、30、60 |
レスポンス
{
"status": "success",
"order": 32
}コメント付き注文
別種の注文です。数量ではなくコメントの一覧を渡します。メンションやカスタムコメントに適します。
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | add |
service必須 | パッケージ ID |
link必須 | チャンネル・配信・ページの URL |
comments必須 | コメント(1 行に 1 件) |
レスポンス
{
"status": "success",
"order": 32
}注文ステータス
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | status |
order必須 | 注文 ID |
レスポンス
{
"order": "32",
"status": "pending",
"charge": "0.27819",
"start_count": "0",
"remains": "0",
"currency": "USD"
}複数注文のステータス
1 回のリクエストで最大 100 件。100 回に分ける必要はありません。
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | status |
orders必須 | ID をカンマ区切りで:12,13,14 |
レスポンス
{
"12": {
"order": "12",
"status": "completed",
"charge": "0.27819",
"currency": "USD"
},
"13": {
"error": "Incorrect order ID"
}
}サービス一覧
利用可能なサービスと価格をすべて返します。名称の言語は API 設定に従い、価格は常にドル建てです。
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | services |
レスポンス
[
{
"service": "5",
"name": "Instagram Followers",
"rate": "0.9",
"min": "50",
"max": "10000",
"type": "Default",
"category": "Instagram"
}
]残高
最も簡単なメソッドで、キーの動作確認に便利です。
| パラメーター | 説明 |
|---|---|
key必須 | API 設定のキー |
action必須 | balance |
レスポンス
{
"status": "success",
"balance": "0.03",
"currency": "USD"
}エラー
失敗時はレスポンスに説明付きの error が入ります。HTTP コードは 200 のままなので、接続状態ではなく本文を確認してください。
{
"error": "Incorrect request"
} 再販用サイトをお探しですか。
当社のサービスでパネルを一式ご用意します。残高と価格はドル建て、Perfect Panel と SmartPanel に対応。
Telegram で相談 type: default
Deposit funds, one-click order, discounts and bonuses are available only for registered users. Register.
ストリーマー向けサービス
VK Video Live

Dlive

Shopee

Bigo
コンテンツクリエイター向けサービス








