アプリ利用企業一覧
POST
/api_app/company
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'client_id=xxxxxxxxx&client_secret=xxxxxxxxxxxxx' https://api.next-engine.org/api_app/company// POST /api_app/company - アプリ利用企業一覧const params = new URLSearchParams({ client_id: '<client_id>', client_secret: '<client_secret>',})const res = await fetch('https://api.next-engine.org/api_app/company', { 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_app/company - アプリ利用企業一覧import requests
params = { 'client_id': '<client_id>', 'client_secret': '<client_secret>',}res = requests.post( 'https://api.next-engine.org/api_app/company', data=params,)json = res.json()if json['result'] != 'success': raise RuntimeError(json.get('message') or json.get('code'))print(json.get('data'))Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/x-www-form-urlencoded
object
client_id
required
ネクストエンジンの「アプリを作る」 -> 該当アプリの「詳細」または「編集」 -> 「API」タブにあるクライアントID / テスト環境で実施する場合は、テスト環境の値を指定する。販売する前には本番環境の値を指定する
string
client_secret
required
ネクストエンジンの「アプリを作る」 -> 該当アプリの「詳細」または「編集」 -> 「API」タブにあるクライアントシークレット / client_idと同じ
string
Example generated
client_id=example&client_secret=exampleResponses
Section titled “Responses”実行結果 (result が success / error / redirect のいずれか)
Media typeapplication/json
object
result
required
success / success以外の場合の出力パラメータは成功時以外の出力パラメータ参照
string
count
検索結果の件数
integer | string
data
検索結果の連想配列(JSONのオブジェクト型) 例)“data”: [{ “company_id”: “xxxxxxxxx”, “company_ne_id”: “yyyyyyyy” }] / フィールドは企業のメイン機能企業ID(company_id)とネクストエンジン企業ID(company_ne_id)です。アプリ種別が「ログインのみアプリ」の場合は、メイン機能企業ID(company_id)がnullとなりますのでご注意ください。 また、企業情報の取得は、各企業がアプリを起動した際に企業情報取得にて保持して下さい
Array<object>
object
key
additional properties
any
Example
{ "result": "success", "count": "1", "data": [ { "company_id": "xxxxxxxxxxxxxx" } ]}クライアントエラー (HTTP ステータス自体は 200 + result=error で返ることが多い)
Media typeapplication/json
失敗時の応答。パラメータ共通事項の「成功時以外の出力パラメータ」を参照
object
result
required
Error(code にエラー原因のメッセージコード、message にエラーメッセージ)または redirect(再ログインのため uid・state 取得にリダイレクトする)
string
code
エラーコード
string
message
One of:
string
Array<object>
object
Example generated
{ "result": "example", "code": "example", "message": [ {} ]}