简体   繁体   English

linkedin猫得到虚荣名

[英]linkedin cat get vanity name

Hi I am trying to get the profile url for the user that is logging in from linkedin(the login part has been nailed), but according to the documentation I need to request for the vanity name from the api. 嗨,我正在尝试获取从linkedin登录的用户的配置文件URL(登录部分已被钉死),但根据文档,我需要从api请求虚荣名称。

So I requested it like follows: 所以我要求如下:

https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,vanityName,profilePicture(displayImage~:playableStreams)) https://api.linkedin.com/v2/me?projection=(id,firstName,lastName,vanityName,profilePicture(displayImage~:playableStreams))

to no avail, note that there was no access denied or error, and it returns some of the data, but no vanityName. 没有用,请注意没有拒绝访问或错误,它返回一些数据,但没有vanityName。 Example returnes json with deleted parts 示例返回带有删除部分的json

{
"firstName": ...
},
"lastName": ...
},
"profilePicture":...,
"id":"M-jljLc2ue"
}

I am using the following docs as a reference 我使用以下文档作为参考

https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin/consumer/context . https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin/consumer/context

If of any use, I am using the laravel socialite packages as a base 如果有任何用途,我使用laravel socialite包作为基础

You can't get the vanityName or public profile URL in v2, unless, you have the permit approved by LinkedIn. 您无法在v2中获取vanityNamepublic profile URL ,除非您拥有LinkedIn批准的许可。 They also discourage if you apply for the partner program to get the vanityName . 如果您申请合作伙伴计划以获取vanityName他们也会劝阻。

Please check the links & quotes below. 请检查下面的链接和引用。

https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin/consumer/context https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api?context=linkedin/consumer/context

The use of this API is restricted to those developers approved by LinkedIn and subject to applicable data restrictions in their agreements . 此API的使用仅限于LinkedIn批准的开发人员,并受其协议中适用的数据限制

https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api-v1-migration https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api-v1-migration

Please do not apply to a partner program like the Marketing Developer Platform if you are seeking access to member profile data that is not made available via the new “Lite Profile” permission. 如果您正在寻求访问未通过新的“Lite Profile”权限提供的成员资料数据, 请不要申请像Marketing Developer Platform这样的合作伙伴计划。 Access to partner programs is appropriate for select use cases only , and all other requests for access will be rejected . 访问合作伙伴计划仅适用于选定的用例 ,并且所有其他访问请求都将被拒绝

https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

List of LinkedIn v1 API permissions (old) LinkedIn v1 API权限列表(旧)

  • r_basicprofile r_basicprofile
  • r_emailaddress r_emailaddress
  • w_share w_share
  • rw_company_admin rw_company_admin

List of LinkedIn v2 API permissions (new) LinkedIn v2 API权限列表(新)

  • r_liteprofile (replaces r_basicprofile) r_liteprofile(替换r_basicprofile)
  • r_emailaddress r_emailaddress
  • w_member_social (replaces w_share) w_member_social(替换w_share)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM