注:接口与 应用授权 - 接口调用 - 获取企业永久授权码 为同一接口。不同点是,若应用接入付费策略,则会额外返回字段,这里仅对额外返回的字段进行说明。
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/service/get_permanent_code' \
--header 'Content-Type: application/json' \
--data-raw '{
"auth_code": "auth_code_value"
}'
{
"errcode": 0,
"errmsg": "ok",
"edition_info": {
"agent": [
{
"agentid": 1,
"edition_id": "RLS65535",
"edition_name": "协同版",
"app_status": 3,
"user_limit": 200,
"expired_time": 1541990791,
"is_virtual_version": false,
"is_shared_from_other_corp": true
}
]
}
}
【企业微信】API开发者 微信交流群
用微信扫右侧二维码,加入【企业微信】API开发者 交流群,互助沟通