public User verify() throws N0ticeException { OAuthRequest request = createOauthRequest(Verb.GET, apiUrl + "/verify"); // TODO most be a POST oauthSignRequest(request); Response response = request.send(); final String responseBody = response.getBody(); if (response.getCode() == 200) { return userParser.parseUserProfile(responseBody); } handleExceptions(response); throw new N0ticeException(response.getBody()); }
public List<User> followedUsers(String username) throws N0ticeException { return userParser.parseUserProfiles( httpFetcher.fetchContent(urlBuilder.userFollowedUsers(username), UTF_8)); }
public User user(String username) throws N0ticeException { return userParser.parseUserProfile( httpFetcher.fetchContent(urlBuilder.userProfile(username), UTF_8)); }