小编Ank*_*las的帖子

访问连接被拒绝新的Android SDK

我根据文档和Linkedin新示例应用程序使用新的Linkedin Android SDK获取"访问连接被拒绝"错误: -

APIHelper apiHelper = APIHelper
                            .getInstance(getApplicationContext());
                    apiHelper.getRequest(ApiActivity.this, "https://" + host
                + "/v1/people/~/connections:(first-name,last-name,public-profile-url)",
                            new ApiListener() {
                                @Override
                                public void onApiSuccess(ApiResponse s) {
                                    ((TextView) findViewById(R.id.response))
                                            .setText(s.toString());
                                }

                                @Override
                                public void onApiError(LIApiError error) {
                                    ((TextView) findViewById(R.id.response))
                                            .setText(error.toString());
                                }
                            });
Run Code Online (Sandbox Code Playgroud)

android linkedin

5
推荐指数
1
解决办法
893
查看次数

标签 统计

android ×1

linkedin ×1