Linkedin群组没有进入Android

时间:2013-07-22 12:02:01

标签: android linkedin

我试图在我的linkedin中获取群组,我正在使用此调用http://api.linkedin.com/v1/people/~/group-memberships?count=10&start=10&format=json但是当我尝试调用此网址时收到错误消息“访问群组成员资格被拒绝”。

这是我的代码:

  String message="";
  Token requestToken;
   service = new ServiceBuilder()
   .provider(LinkedInApi.class)
  .apiKey("XXXXXXXXXX") 
 .apiSecret("XXXXXXXXXX")
 .build();

  requestToken = service.getRequestToken();

String url = "http://api.linkedin.com/v1/people/~/group-memberships?count=10&  start=10&format=json";
     OAuthRequest request = new OAuthRequest(Verb.GET, url);

      request.addHeader("Content-Type", "application/json");
      service.signRequest(linkrdInToken, request);


     Response response = request.send();

0 个答案:

没有答案