调用刷新令牌接口;curl如下:
curl --location --request POST 'https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=49_o9wfhfuLC07R4Ehi9vfXYASovOTeA6f86SwKWj5gd9ZI1NAb2waEn0_Hn9Cj7iXH1Ftc7qBvjZ-mxxpR4v5PEZRyI11qePSHRqnb5lgcZQk_d35-CiwwzKJ0KS1zFGImZE7T_3BjF24ytUExOAKbABAUGQ' \
--header 'Content-Type: application/json' \
--data-raw '{
"component_appid":"XXXXXXXXXX",
"authorizer_appid":"XXXXXXXXXX",
"authorizer_refresh_token":"XXXXXXXXXXXXXXX"
}'
响应结果:
{
"errcode": 61023,
"errmsg": "refresh_token is invalid rid: 6142cae2-160a288b-589e1ad2"
}
请问为什么报这个错,我确定我的参数是正确的
你好,参考拉取授权方帐号基本信息接口https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/Account_Authorization/api_get_authorizer_list.html获取refresh_token重试下