Key Authentication¶
Endpoint: Login Domain (Contact us if unsure)
POST /prod-api/auth/authentication
Exchanges an appKey and secret for an access token to call other APIs. expires_in represents the validity period in seconds. The token will expire after this period and needs to be renewed. The token's validity period will be recalculated with each API request.
Request Body Parameters
Request Parameters¶
Name | In | Type | Required | Chinese Name | Description |
---|---|---|---|---|---|
body | body | object | No | none | |
» appKey | body | string | Yes | appkey | none |
» secret | body | string | Yes | secret | none |
Response Example
200 Response
Response¶
Status Code | Status Meaning | Description | Data Model |
---|---|---|---|
200 | OK | Success | Inline |
Response Schema¶
tatus Code 200
Name | Type | Required | Constraints 束 | Chinese Name | Description |
---|---|---|---|---|---|
» expires_in | string | true | none | Validity period of access_token | |
» access_token | string | true | none | token |