[英]How to upload the Users profile pic and how to fetch that profile pic from another users device?
[英]Unable to fetch Email and profile pic from installed Linkedin app
我正在嘗試獲取Linkedin用戶的以下詳細信息,例如姓名,電子郵件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: {
}
以下代碼解決了我的問題
要通過應用獲取電子郵件地址:
[LISDK_BASIC_PROFILE_PERMISSION,LISDK_EMAILADDRESS_PERMISSION]
要獲取個人資料照片:
picture-urls::(original)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.