微信官方文档获取token 的接口是
请求地址:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=appid&secret=secret
返回结果:
- 200 OK
- Connection: close
- Date: Fri, 06 Mar 2020 02:36:27 GMT
- Content-Type: application/json; encoding=utf-8
- Content-Length: 117
-
{ "errcode": 61024, "errmsg": "must use api(api_component_token) to get token for component acct hint: [KIzgka01871550]" }
must use api(api_component_token) to get token for component acct hint 提示api要用api_component_token获取
需要把接口改成
post https://api.weixin.qq.com/cgi-bin/component/api_component_token
参数
{
"component_appid": "appid_value" ,
"component_appsecret": "appsecret_value",
"component_verify_ticket": "ticket_value"
}