【问题标题】:Get Recommendation from LinkedIn API returns empty map [:] as response从 LinkedIn API 获取推荐返回空地图 [:] 作为响应
【发布时间】:2015-10-28 06:59:29
【问题描述】:

我创建了一个 Web 应用程序,我尝试使用 URL 从他/她的 LinkedIn 个人资料中获取用户的推荐

String url="https://api.linkedin.com/v1/people/~:(recommendations-received:(id,recommendation-type,recommendation-text,recommender))?format=json"

当我在 Api Explorer 它工作正常。并给出输出:-

{   "recommendationsReceived":  {
    "_total": 2,
    "values":  [
       {
        "id": 558598601,
        "recommendationText": "xxx is among the best team players I ever worked with.  He has handled client effectively with smooth operations. I had always seen him as person with solution mindset and always look for  solution rather than thinking about the problem. ",
        "recommendationType":  {
          "code": "colleague"
        },
        "recommender":  {
          "firstName": "XXX",
          "id": "YYYY",
          "lastName": "XXX"
        }
      },
       {
        "id": ZZZZ,
        "recommendationText": "XXX is one of the most dedicated person at work.I always him with a flexible attitude and ready to adapt himself in all situation.I have seen him work all night to catch up all the deadlines and deliver on time ."
        "recommendationType":  {
          "code": "colleague"
        },
        "recommender":  {
          "firstName": "XXX",
          "id": "YYYY",
          "lastName": "XXXX"
        }
      }
    ]   } }

问题来了,当我在我的开发者应用程序中使用这个 URL 时。它不会给出任何错误,只是简单地返回一个空地图 [:] 作为响应的输出强>

无论这些推荐字段如何,我都成功获得了用户基本个人资料数据,例如电子邮件、id、图像、名字、姓氏。意味着我的代码适用于其他字段,但不适用于这些推荐 字段*

为了找到解决方案,我上网并找到了 Linked API 文档的链接

Linked API Docs

根据文档,选择配置文件字段后仅可用 对已申请并获得批准的申请 领英计划: 推荐字段

我已经创建了一个 LinkedIn 开发者帐户来获取密钥和秘密 那么我如何申请并获得通过 LinkedIn 推荐字段申请的批准。 我已经看过 LinkedIn 支持,但找不到向 Linked Developer 帮助支持提问的方法

请给我正确的建议。

【问题讨论】:

    标签: grails oauth oauth-2.0 linkedin linkedin-api


    【解决方案1】:

    经过长时间的网上冲浪,我发现了一些富有成效的东西,我必须填写表格才能获得这些字段。这里是form

    连同其程序细节

    【讨论】:

      【解决方案2】:

      您可以只使用收到推荐的关键字。试试下面的链接。我正在通过此链接获取所有推荐详细信息。

      https://api.linkedin.com/v1/people/~:(recommendations-received)?format=json

      【讨论】:

      • 这个我也试过了,还是不行。谢谢回复
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-16
      • 1970-01-01
      • 2019-10-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多