为什么linkedin连接rest API提供了错误的成员id?

为什么linkedin连接rest API提供了错误的成员id?,linkedin,Linkedin,我在php中创建了一个应用程序,因此我必须从这个RESTAPI获取我的网络的所有连接 但它给出了错误的成员id。我在LinkedIn rest控制台()中检查了相同的API结果,但它给出了不同的输出 带控制台的输出: <person> <id>nzdqEWJjKM</id> <first-name>Sagar</first-name> <last-name>Modi</last-name>

我在php中创建了一个应用程序,因此我必须从这个RESTAPI获取我的网络的所有连接

但它给出了错误的成员id。我在LinkedIn rest控制台()中检查了相同的API结果,但它给出了不同的输出

带控制台的输出:

<person>
    <id>nzdqEWJjKM</id>
    <first-name>Sagar</first-name>
    <last-name>Modi</last-name>
    <headline>Sr. HR Officer - Generalist at MAS Financial Services Ltd.</headline>
    <picture-url>http://m3.licdn.com/mpr/mprx/0_3vxs_YPyEsnVrHXzT-Jd_pvlox-zraqzitwL_pt_zJ6LfEivSP7nDy6SXttoPdzJhngkuU2v-HG2</picture-url>
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/nzdqEWJjKM</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:PSbh</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile/view?id=54732271&authType=name&authToken=PSbh&trk=api*a108281*s116823*</url>
    </site-standard-profile-request>
    <location>
      <name>Ahmedabad Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Human Resources</industry>
  </person>
使用rest API从我的应用程序输出:

<person>
    <id>7dmJjxBx_k</id>
    <first-name>Sagar</first-name>
    <last-name>Modi</last-name>
    <headline>Sr. HR Officer - Generalist at MAS Financial Services Ltd.</headline>
    <picture-url>http://m3.licdn.com/mpr/mprx/0_3vxs_YPyEsnVrHXzT-Jd_pvlox-zraqzitwL_pt_zJ6LfEivSP7nDy6SXttoPdzJhngkuU2v-HG2</picture-url>
    <api-standard-profile-request>
      <url>http://api.linkedin.com/v1/people/7dmJjxBx_k</url>
      <headers total="1">
        <http-header>
          <name>x-li-auth-token</name>
          <value>name:PSbh</value>
        </http-header>
      </headers>
    </api-standard-profile-request>
    <site-standard-profile-request>
      <url>http://www.linkedin.com/profile/view?id=54732271&amp;authType=name&amp;authToken=PSbh&amp;trk=api*a184885*s193024*</url>
    </site-standard-profile-request>
    <location>
      <name>Ahmedabad Area, India</name>
      <country>
        <code>in</code>
      </country>
    </location>
    <industry>Human Resources</industry>
  </person>
请看两个输出中的标签不同


有人能帮忙吗?

每个linkedin应用程序都有自己的一组唯一ID。您使用的API键与控制台使用的键不同,这就是您获得不同ID的原因


这是为了确保Linkedin数据不会轻易被垃圾邮件发送者捕获。如果ID相同,垃圾邮件发送者将设置数百个应用程序,并从每个应用程序中获取大量配置文件数据。Linkedin希望保持其用户数据的安全

谢谢。我已经用我申请的身份证试过了。事实上,我只是因为身份证的不同而感到困惑。非常感谢你的帮助..哇。要么文档中根本没有提到这一点,要么我完全跳过了它。谢谢如何防止垃圾邮件发送者设置数百个应用程序并获取大量配置文件?垃圾邮件发送者寻找的是个人信息,而不是固定ID或不断变化的ID。@VladimirObrizan如果没有任何用户授权应用程序,垃圾邮件发送者无法获取任何数据,除非他们可以在LinkedIn帐户内看到。因此,除非数千或更多的用户对每个应用程序进行了身份验证,否则数百个应用程序都不值得?