百度AI开放平台通用鉴权认证机制
一、获取API Key/Secret Key
关键信息主要为AppID、API Key、Secret Key
注:更新Secret Key
后历史生成的Access_token
将立即失效
二、获取Access_token
https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=Va5yQRHlA4Fq5eR3LT0vuXV4&client_secret=0rDSjzQ20XUj5itV6WRtznPQSzr5pVw2&
关注参数:
- access_token
- expires_in:Access Token的有效期(秒为单位,有效期30天)
{
"error": "invalid_client",
"error_description": "unknown client id"
}