【问题标题】:how to get company and designation from linkedIn android如何从linkedIn android获取公司和名称
【发布时间】:2016-09-27 22:28:52
【问题描述】:

我正在为 android 使用 3pillars 社交身份验证库。

我如何获得用户的公司和名称。目前我正在尝试使用

String firstName=profile.getFirstName();
String lastName=profile.getLastName();
String email=profile.getEmail();
profile.getContactInfo();

我收到了null profile.getContactInfo();

【问题讨论】:

    标签: android linkedin socialauth


    【解决方案1】:

    检查此Android LinkedIn integration,以下代码可能对您有所帮助

    try {
    
                final Person user_Profile = client.getProfileForCurrentUser(EnumSet.of(ProfileField.ID)); 
                person = client.getProfileById(user_Profile.getId(), EnumSet.of(
                        ProfileField.FIRST_NAME,
                        ProfileField.LAST_NAME,
                        ProfileField.PICTURE_URL,
                        ProfileField.INDUSTRY,
                        ProfileField.MAIN_ADDRESS,
                        ProfileField.HEADLINE,
                        ProfileField.SUMMARY,
                        ProfileField.POSITIONS,
                        ProfileField.EDUCATIONS,
                        ProfileField.LANGUAGES,
                        ProfileField.SKILLS,
                        ProfileField.INTERESTS,
                        ProfileField.PHONE_NUMBERS,
                        ProfileField.EMAIL_ADDRESS,
                        ProfileField.DATE_OF_BIRTH,
                        ProfileField.PUBLIC_PROFILE_URL));
    
    
                prof_name       = person.getFirstName() + " "   + person.getLastName();
                prof_headline   = person.getHeadline();
                prof_location   = person.getMainAddress();
                prof_industry   = person.getIndustry();
    
    
                return person;
    
            } catch (LinkedInApiClientException ex) {
                return ex;
            }
    

    【讨论】:

    • 我正在为此使用库。这个图书馆将如何给我公司和称号?
    • 你能帮我提供完整的代码吗?我不使用linkedIn sdk,因为当用户没有linkedIn android应用时,我不支持通过sdk登录。
    • 我提供了一个链接,请检查
    • 当用户没有linkedIn android 应用程序时,您对这个“LInkedIn 不支持通过sdk 登录”的看法怎么样。”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-03
    相关资源
    最近更新 更多