获取访问令牌
通过客户端凭证模式(Client Credentials)、密码模式(Resource Owner Password Credentials)或刷新令牌(Refresh Token)获取访问令牌。仅密码模式且 scope 包含 offline_access 时支持刷新令牌。
Request Body
application/x-www-form-urlencoded
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://camp.app.hzgcloud.cn/UserService/connect/token" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'grant_type=client_credentials'{
"access_token": "eyJhbGciOiJSUzI1NiIsImt...",
"expires_in": 7200,
"token_type": "Bearer",
"scope": "FGC_AllAppsServerCommands FGC_UserAPIs"
}