我正在开发一个APP以获取用户的联系。不幸的是,当我使用连接API时,出现了错误
“拒绝访问连接”。
我已经检查了范围设置,那里没有添加或删除选项的选项。共享默认情况下在我的应用程序上启用的可用选项。
r_emailaddress (3-legged member permission)
w_share (3-legged member permission)
r_basicprofile (3-legged member permission)
r_liteprofile (3-legged member permission)
rw_company_admin (3-legged member permission)
w_member_social (3-legged member permission)
我还请求了r_fullprofile
访问权限并已在合作伙伴计划中注册,以获取r_1st_connections
的访问权限和其他访问权限,但是Linkedin上没有人对此请求做出回应。
如果需要,我可以分享我的邮递员收藏。 通过邮递员检查API
GET: https://api.linkedin.com/v2/connections?q=viewer&projection=(elements*(to~(id,localizedFirstName,localizedLastName)))
Header
authorization Bearer XXXXXXXXXXXXXXXXXXXXXXXXX
Connection Keep-Alive
O/P:{
"serviceErrorCode": 100,
"message": "Not enough permissions to access: GET-viewer /connections",
"status": 403
}
使用相同的标头,我可以获取基本的个人资料详细信息
GET: https://api.linkedin.com/v2/me