契約情報の取得¶
現在契約中のプランの情報を取得します。
GET /api/1/admin/bill_plan
Parametres¶
- output_type
- Response 形式
- x : XML 形式で出力
 - 指定無し : JSON 形式で出力
 
 
 - Response 形式
 
Response¶
status
- 処理結果success : 成功それ以外 : 失敗
 
info
- 契約情報
- plan_name
- 契約しているプラン名称
 
 - monthly_fee
- 毎月の支払額 ( 円 )
 
 - disk_usage
- 現在使用中のディスク容量 ( Byte )
 
 - max_disk_usage
- 最大使用可能ディスク容量 ( Byte )
 
 - upload_max_size
- 一度に投稿可能な最大ファイルサイズ ( Byte )
 
 
 - plan_name
 
- 契約情報
 
Request Example¶
GET
https://example.com/api/1/admin/bill_plan?output_type=x
Sample Curl Command¶
- Basic認証を使用した方法
 
curl --basic -u {your account}:{your password} "https://example.com/api/1/admin/bill_plan"
- AccessToken認証を使用した方法
 
curl "https://example.com/api/1/admin/bill_plan" \
-H "Authorization: Bearer {your access_token}"
Response Example - JSON¶
{
  "status":"success",
  "info":{
    "plan_name":"Test Plan",
    "monthly_fee":250000,
    "disk_usage":3904360448,
    "max_disk_usage":8200000000,
    "upload_max_size":10000000
  }
}
Response Example - XML¶
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>success</status>
<info>
  <plan_name>test plan</plan_name>
  <monthly_fee>250000</monthly_fee>
  <disk_usage>3904360448</disk_usage>
  <max_disk_usage>8200000000</max_disk_usage>
  <upload_max_size>10000000</upload_max_size>
</info>
</response>