android sdk被拒绝,访问连接被拒绝新的Android SDK

Agree OAuth User Agreement:

Neither r_basicprofile nor r_fullprofile is checked for getting access to user profile.follow url can be use to fetch profile

information from LinkedIn.

Default Scope:

r_basicprofile

r_fullprofile

User the following urls to fetch LinkedIn data.

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";

Don’t forget to set permission for accessing above info at both mobile

app as well as while registering app in LinkedIn

private static Scope buildScope() {

return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS, Scope.R_CONTACTINFO); }

Example code follows

LISessionManager.getInstance(context).init(context, buildScope(), new AuthListener() {

@Override

public void onAuthSuccess() {

}

@Override

public void onAuthError(LIAuthError error) {

}

}, true);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值