項目名情報取得
POST
/api_v1_system_itemname/info
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \ -d 'access_token=xxxxxxxxxxxxxx&refresh_token=xxxxxxxxxxxxxx&wait_flag=1' \ "https://api.next-engine.org/api_v1_system_itemname/info"// POST /api_v1_system_itemname/info - 項目名情報取得const params = new URLSearchParams({ access_token: '<access_token>',})const res = await fetch('https://api.next-engine.org/api_v1_system_itemname/info', { method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded' }, body: params,})const json = await res.json()if (json.result !== 'success') throw new Error(json.message ?? json.code)console.log(json.data)# POST /api_v1_system_itemname/info - 項目名情報取得import requests
params = { 'access_token': '<access_token>',}res = requests.post( 'https://api.next-engine.org/api_v1_system_itemname/info', data=params,)json = res.json()if json['result'] != 'success': raise RuntimeError(json.get('message') or json.get('code'))print(json.get('data'))Request Body required
Section titled “Request Body required ” Media type application/x-www-form-urlencoded
ネクストエンジン API 共通リクエストパラメータ
object
access_token
required
OAuth2 アクセストークン (必須)
string
refresh_token
OAuth2 リフレッシュトークン (access_token 期限切れ時の自動更新に使用)
string
wait_flag
同期実行フラグ。“1” 指定で処理完了を待つ
string
fields
取得するフィールドをカンマ区切りで指定 (search 系のみ)
string
offset
検索開始位置 (search 系のみ)
integer
limit
取得件数 (search 系のみ)
integer
Responses
Section titled “ Responses ”実行結果 (result が success / error / redirect のいずれか)
Media type application/json
object
result
required
実行結果ステータス
string
code
エラー時のエラーコード
string
message
One of:
string
Array<object>
object
access_token
更新後のアクセストークン
string
access_token_end_date
アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)
string
refresh_token
更新後のリフレッシュトークン
string
refresh_token_end_date
リフレッシュトークン有効期限
string
data
エンドポイント固有のレスポンスデータ
count
Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)
integer | string
data
Array<object>
object
item_id
項目ID / 文字列型
string | integer | number | boolean | null
item_name
項目名 / 文字列型
string | integer | number | boolean | null
key
additional properties
any
Example
{ "result": "success", "count": "30", "data": [ { "item_id": "org1", "item_name": "項目1" }, { "item_id": "org10", "item_name": "項目10" }, { "item_id": "org11", "item_name": "項目11" }, { "item_id": "org12", "item_name": "項目12" }, { "item_id": "org13", "item_name": "項目13" }, { "item_id": "org14", "item_name": "項目14" }, { "item_id": "org15", "item_name": "項目15" }, { "item_id": "org16", "item_name": "項目16" }, { "item_id": "org17", "item_name": "項目17" }, { "item_id": "org18", "item_name": "項目18" }, { "item_id": "org19", "item_name": "項目19" }, { "item_id": "org2", "item_name": "項目2" }, { "item_id": "org20", "item_name": "項目20" }, { "item_id": "org3", "item_name": "項目3" }, { "item_id": "org4", "item_name": "項目4" }, { "item_id": "org5", "item_name": "項目5" }, { "item_id": "org6", "item_name": "項目6" }, { "item_id": "org7", "item_name": "項目7" }, { "item_id": "org8", "item_name": "項目8" }, { "item_id": "org9", "item_name": "項目9" }, { "item_id": "org_select1", "item_name": "選択肢1" }, { "item_id": "org_select10", "item_name": "選択肢10" }, { "item_id": "org_select2", "item_name": "選択肢2" }, { "item_id": "org_select3", "item_name": "選択肢3" }, { "item_id": "org_select4", "item_name": "選択肢4" }, { "item_id": "org_select5", "item_name": "選択肢5" }, { "item_id": "org_select6", "item_name": "選択肢6" }, { "item_id": "org_select7", "item_name": "選択肢7" }, { "item_id": "org_select8", "item_name": "選択肢8" }, { "item_id": "org_select9", "item_name": "選択肢9" } ], "access_token": "xxxxxxxxxxx", "access_token_end_date": "2017-04-13 18:24:53", "refresh_token": "xxxxxxxxxxx", "refresh_token_end_date": "2017-04-15 18:24:53"}クライアントエラー (HTTP ステータス自体は 200 + result=error で返ることが多い)
Media type application/json
object
result
required
実行結果ステータス
string
code
エラー時のエラーコード
string
message
One of:
string
Array<object>
object
access_token
更新後のアクセストークン
string
access_token_end_date
アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)
string
refresh_token
更新後のリフレッシュトークン
string
refresh_token_end_date
リフレッシュトークン有効期限
string
data
エンドポイント固有のレスポンスデータ
count
Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)
integer | string
Example
{ "result": "success"}