POST /oauth/tokenContent-Type: application/x-www-form-urlencodedgrant_type=authorization_code&code=AUTH_CODE&redirect_uri=https://myapp.com/callback&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&code_verifier=YOUR_PKCE_VERIFIER
GET /rest/companiesAuthorization: Bearer ACCESS_TOKEN
5. 过期时刷新
POST /oauth/tokenContent-Type: application/x-www-form-urlencodedgrant_type=refresh_token&refresh_token=YOUR_REFRESH_TOKEN&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET
客户端凭证流程
适用于无用户交互的服务器到服务器集成:
POST /oauth/tokenContent-Type: application/x-www-form-urlencodedgrant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&scope=api