java - LinkedIn API with /v2/clientAwareMemberHandles?q=handleString
问题描述
I have requirement to get the person ID from the linkedin API https://api.linkedin.com/v2/clientAwareMemberHandles?q=handleString&handleString=test123@gmail.com but receiving response below
{
"serviceErrorCode": 100,
"message": "Not enough permissions to access: GET-handleString /clientAwareMemberHandles",
"status": 403
}
I have the application permissions in the application r_liteprofile/w_member_social/r_emailaddress
Additionally when I requesting a access token I send these three as scope parameters.
Appreciate your guidance.
解决方案
此响应来自 api 中的链接,而不是来自 API 管理器。基本上,这意味着从 api manager 到 LinkedIn api 的调用没有具有正确权限的令牌。
API 管理器生成的令牌仅用于与 api 管理器进行身份验证。如果后端服务器也需要一个令牌,您应该在 API-M 的请求中将该特定令牌发送到后端。
您可以通过向您的 API 添加冥想序列来实现此目的。请按照以下示例进行操作。
推荐阅读
- android - 为什么 YouTube API 需要这么长时间才能响应?
- c# - 如何从列表列表中删除重复条目
- http-status-code-404 - OPENCART:博客模块不邀请图片为什么?
- latex - 如何使用 BibLaTeX 从文本引用中添加冒号并删除“p/pp”?
- vectorization - 有没有一种方法可以矢量化将函数应用于张量的每个元素
- raku - 如何使用 NativeCall 从 Perl 6 正确使用 libXL?
- asp.net-mvc - 为现场服务器设置 Azure DevOps Pipelines
- django - 找不到 Django 媒体文件
- google-api - 谷歌云和 API - 是否可以限制域范围的委派?
- html - 我需要在列表 css 内的链接上添加悬停