使用LinkedIn API中的Oauth 2.0获取用户配置文件

Har*_*ani 5 rest linkedin oauth-2.0

我想实现"使用LinkedIn注册"功能,我遵循了这个文档,并坚持使用此错误而不是获取访问令牌. https://developer.linkedin.com/documents/authentication

{
    "error": "invalid_request",
    "error_description": "missing required parameters, includes an invalid parameter value, parameter more then once. : client_id"
}
Run Code Online (Sandbox Code Playgroud)

我想在注册表中填写用户基本信息,例如姓名,姓氏,电子邮件等.我不想使用javascript API,需要使用linkedIn的REST API,

小智 10

这将返回一个带有用户信息的json文件:https://api.linkedin.com/v1/people/~?asia2_access_token = value&format = json

对于指定值:https://api.linkedin.com/v1/people/~:(firstName ,lastName,picture -url)?another2_access_token = value &format = json


San*_*anS 3

请参考以下内容,

http://www.bigcode.net/2013/08/linkedin-share-api-usage-using-oauth2.html

它包含有关使用 OAuth2 和访问其中一个 api 的详细信息。

该代码可用于身份验证。通过身份验证后,您可以使用此处提到的 Profile api

http://developer.linkedin.com/documents/profile-api获取个人资料详细信息。