【问题标题】:How to fetch Contact number using linkedin mobile sdk如何使用linkedin mobile sdk获取联系电话
【发布时间】:2016-11-02 20:43:57
【问题描述】:
private static final String host = "api.linkedin.com"; 
private static final String PROTECTED_URL_GET_CURRENT_USER_PROFILE = "https://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address,picture-url,industry)";

如何添加字段以获取联系电话?

还有其他方法可以从 Linked-in 获取详细信息吗?

【问题讨论】:

    标签: android linkedin linkedin-api


    【解决方案1】:

    使用以下网址获取 LinkedIn 数据。

    private static final String HOST = "api.linkedin.com";
    private static final String FETCH_BASIC_INFO = "https://" + host + "/v1/people/~:(id,first-name,last-name,headline,location,industry)";
    private static final String FETCH_CONTACT = "https://" + host + "/v1/people/~:(num-connections,email-address,phone-numbers,main-address)";
    private static final String FETCH_PROFILE_PIC = "https://" + host + "/v1/people/~:(picture-urls::(original))";
    private static final String SHARE_URL = "https://" + host + "/v1/people/~/shares";
    

    不要忘记在移动应用以及在领英注册应用时设置访问上述信息的权限

      private static Scope buildScope() {
        return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS, Scope.R_CONTACTINFO);
    }
    

    【讨论】:

    • 似乎它不起作用我需要使用linkedin的合作伙伴程序来访问已登录用户的联系号码吗?
    猜你喜欢
    • 1970-01-01
    • 2012-03-27
    • 2016-12-12
    • 2020-12-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多