Authentication (OpenAPI V2)
This page explains authentication for OpenAPI V2 requests. V2 uses the same auth model as the QR code API.
Create an API Key
Before calling the API, create and retrieve an API Key.
- Open Data API page
- Click
添加配置, findOpenAPI, and click开通 - Enter an API Key name and click
保存 - In the list, click the copy icon to copy the key
The API Key name is typically used to distinguish different applications.
Authentication method
OpenAPI V2 currently supports Bearer Token only.
Bearer Token
Set request header Authorization to Bearer <API Key>.
Example:
Authorization: Bearer Abc123456