获取部门列表接口,用通讯录token,返回结果为空

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:07 201 0 全屏看文
获取部门列表接口,用通讯录token,返回结果为空

access_token:3DGz65RQz9UBePPhCWf7Q0AFdR_0F4IkX8fEOLQHZfKGsens50rHlcBuNm4vs07EPQ6HQ-LM9X7F8AkPLB06odCd5mWPsj8TVkmweSOxRVovHbuR5tfughAxqv85b_U_PUQ2KWxlljRL0rYH2p-iTj2pXbapfLOsuWq9gwtvAV5LJbQ7Ez3XZxsHpueym-n_BTknQQAY-haeovSDjc4s6

调用接口:https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=3DGz65RQz9UBePPhCWf7Q0AFdR_0F4IkX8fEOLQHZfKGsens50rHlcBuNm4vs07EPQ6HQ-LM9X7F8AkPLB06odCd5mWPsj8TVkmweSOxRVovHbuR5tfughAxqv85b_U_PUQ2KWxlljRL0rYH2p-iTj2pXbapfLOsuWq9gwtvAV5LJbQ7Ez3XZxsHpueym-n_BTknQQAY-haeovSDjc4s6g

返回结果:{

    "errcode"0,

    "errmsg""ok",

    "department": []

}

请问是哪里设置有问题么?

access_ token:3DGz65RQz9UBePPhCWf7Q0AFdR_ 0F4IkX8fEOLQHZfKGsens50rHlcBuNm4vs07EPQ6HQ-LM9X7F8AkPLB06odCd5mWPsj8TVkmweSOxRVovHbuR5tfughAxqv85b_ U_ PUQ2KWxlljRL0rYH2p-iTj2pXbapfLOsuWq9gwtvAV5LJbQ7Ez3XZxsHpueym-n_ Btknqqay-haeovsdjc4s6 calling interface: https://qyapi.weixin.qq.com/cgi-bin/department/list?access_ token=3DGz65RQz9UBePPhCWf7Q0AFdR_ 0F4IkX8fEOLQHZfKGsens50rHlcBuNm4vs07EPQ6HQ-LM9X7F8AkPLB06odCd5mWPsj8TVkmweSOxRVovHbuR5tfughAxqv85b_ U_ PUQ2KWxlljRL0rYH2p-iTj2pXbapfLOsuWq9gwtvAV5LJbQ7Ez3XZxsHpueym-n_ Btknqqay-haeovsdjc4s6g returns the result: {"errCode": 0, "errmsg": "OK", "department": []} could you tell me where the settings are wrong?

回答:

企业微信运营专员-千夜:

您好,这个通讯录的accesstoken解析不出来,可以提供下corpid看下

njau-1:

有人说需要配置应用可见范围,但是我新注册了一个企业微信,什么应用也没安装,直接用CorpID+通讯录secret获取到token,再拿token获取组织结构,是能获取到的,这是为啥呢?

QXC:楼主,解决了吗? 我也时同样的情况 然后为啥我直接用CorpID+通讯录secret获取不到token 提示我 secret 错误

-EOF-