public List<ModerationComplaint> getModerationComplaints(String id) throws N0ticeException { final OAuthRequest request = createOauthRequest(Verb.GET, urlBuilder.get(id) + "/flags"); oauthSignRequest(request); final Response response = request.send(); if (response.getCode() == 200) { return moderationComplaintParser.parse(response.getBody()); } handleExceptions(response); throw new N0ticeException(response.getBody()); }
public List<String> moderationStates() throws N0ticeException { return moderationComplaintParser.parseModerationActions( httpFetcher.fetchContent(urlBuilder.moderationStates(), UTF_8)); }