从 LinkedIn API returns 空地图 [:] 获取推荐作为响应

Get Recommendation from LinkedIn API returns empty map [:] as response

我已经创建了一个 Web 应用程序,我正在尝试使用 URL

从 his/her LinkedIn 个人资料中获取用户的推荐

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

当我在 URL 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"
        }
      }
    ]   } }

问题来了,当我在我的 Developer 中使用这个 URL 时 app.It 没有给出任何错误只是简单 return空映射 [:] 作为响应的输出

无论这些推荐字段如何,我都成功获取了用户基本配置文件数据,例如电子邮件、ID、图像、名字,lastName.Means我的代码适用于其他字段很好,但不适合这些建议 字段*

为了找到解决方案,我上网冲浪并找到了 link 链接 API 文档

Linked API Docs

As per Docs following selection of profile fields are only available to applications that have applied and been approved for the Apply with LinkedIn program: Recommendation Fields

我已经创建了一个 LinkedIn Developer 帐户来获取密钥和秘密 那么,我该如何申请并获得 Apply with LinkedIn Recommendation Fields 的批准。 我已经看到了 LinkedIn 支持,但找不到向 Linked Developer 帮助支持提问的方式

请建议我正确的方法。

您可以只使用 recommendations-received 关键字。尝试以下 link。我正在通过此 link.

获取所有建议的详细信息

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

经过长时间的网上冲浪,我发现了一些富有成果的东西,我必须填写表格才能获得这些 fields.Here 是 form

及其程序细节