アクセストークンを発行する

アプリケーションまたはクライアント権限でアクセストークンを発行する

post/token

Request

  • Base URL
    https://auth.mimi.fd.ai/v2
  • URL
    https://auth.mimi.fd.ai/v2/token
  • Auth
    none required

Headers

Content-Typestring

application/x-www-form-urlencoded または multipart/form-data

Request body application/x-www-form-urlencoded

client_idstring required

アプリケーションIDのみ、もしくはアプリケーションID とクライアントID を組み合わせた文字列。認可タイプがアプリケーション権限の場合はアプリケーションID、クライアント権限の場合は半角コロンで区切り アプリケーションID:クライアントID とする。

client_secretstring required

アプリケーションシークレット または クライアントシークレット(シークレットの取得を参照)

grant_typestring

認可タイプ。リクエストクライアントがアプリケーションの場合 https://auth.mimi.fd.ai/grant_type/application_credentialsを指定する。リクエストクライアントがクライアントの場合 https://auth.mimi.fd.ai/grant_type/client_credentialsを指定する。

scopestring

認可対象スコープを指定する。複数個指定する場合はセミコロンで区切る。アプリケーションまたはクライアントを作成した際に指定したスコープに含まれるスコープを指定することができる。参考:1. トークンの取得

Response

200

codeinteger
errorstring
statusstring
progressinteger
kindstring
accessTokenstring
expires_ininteger
operationIdstring
selfLinkstring
targetLinkstring
startTimestampinteger
endTimestampinteger

Example response

{
  "code": 200,
  "status": "success",
  "progress": 100,
  "kind": "auth#operation#accesstoken",
  "accessToken": "<accessToken>",
  "expires_in": 3600,
  "operationId": "<operationId>",
  "selfLink": "https://auth.mimi.fd.ai/v2/operations/<operationId>",
  "startTimestamp": 1524110043,
  "endTimestamp": 1524110044
}

Changes

No recorded changes to this operation across all 1 revision of this API.