Ejemplo n.º 1
0
  public void testInfo() {

    OAuthV1 oAuth = OauthKeeper.readOAuth(this);
    UserAPI userAPI = new UserAPI(OAuthConstants.OAUTH_VERSION_1);
    try {
      String response = userAPI.info(oAuth, "json"); // 获取用户信息
      Log.e("debug", "response:" + response);
    } catch (Exception e) {
      e.printStackTrace();
    }
    userAPI.shutdownConnection();
  }