发票识别的Access Token报错
爱marongzheng 发布于2020-03 浏览:2042 回复:1
0
收藏

获取发票识别的Access Token,发送请求到百度的“https://openapi.baidu.com/oauth/2.0/token ”地址上,但百度报错为:

{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported"}不知啥原因,也填写了grant_type=client_credentials

收藏
点赞
0
个赞
共1条回复 最后由用户已被禁言回复于2022-04
#2爱玥轩回复于2020-03

请求的方式应该不对,直接点,替换下url中的ak、sk

https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=【百度云应用的AK】&client_secret=【百度云应用的SK】

详情:https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjhhu

0
TOP
切换版块