首页 > 解决方案 > 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.

标签: javaasp.netangularjswso2linkedin-api

解决方案


此响应来自 api 中的链接,而不是来自 API 管理器。基本上,这意味着从 api manager 到 LinkedIn api 的调用没有具有正确权限的令牌。

API 管理器生成的令牌仅用于与 api 管理器进行身份验证。如果后端服务器也需要一个令牌,您应该在 API-M 的请求中将该特定令牌发送到后端。

您可以通过向您的 API 添加冥想序列来实现此目的。请按照以下示例进行操作。

https://medium.com/@menakajayawardena/wso2-how-to-using-oauth2-protected-back-ends-with-api-manager-5d7e234c61c


推荐阅读