我正在尝试获取Linkedin User的以下详细信息,例如Name,email-id,profilePic,id。
我可以获取除email-id和profilePic之外的所有细节。
通过Linkedin网址获取详细信息
{
firstName = Apple;
formattedName = "Apple Live";
id = 7uRZgpgwgO;
lastName = Live;
picture_url = "" ;
email-id = "abc@gmail.com"
}
通过Linkedin应用程序获取详细信息
{
firstName = Apple;
formattedName = "Apple Live";
id = 7uRZgpgwgO;
lastName = Live;
}
Linkedin应用代码
LISDKAPIHelper.sharedInstance().getRequest("https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address,picture-url,formattedName)?format=json", success: {
}
答案 0 :(得分:1)
以下代码解决了我的问题
通过应用获取电子邮件地址:
[LISDK_BASIC_PROFILE_PERMISSION,LISDK_EMAILADDRESS_PERMISSION]
获取个人资料照片:
picture-urls::(original)