Example #1
0
 private void moderate(ModerationRequest moderation) throws IOException {
   JsonHttpContent payload = new JsonHttpContent(jsonFactory, moderation);
   HttpRequest request = requestFactory().buildPostRequest(moderation.url(useSandbox), payload);
   request.execute();
 }
Example #2
0
 public void reject(Long cardId) throws IOException {
   moderate(ModerationRequest.rejectionOf(cardId));
 }
Example #3
0
 public void approve(CardId id) throws IOException {
   moderate(ModerationRequest.approvalOf(id.id()));
 }
Example #4
0
 public void unapprove(Long cardId) throws IOException {
   moderate(ModerationRequest.pendingOf(cardId));
 }
Example #5
0
 public void approve(Long cardId) throws IOException {
   moderate(ModerationRequest.approvalOf(cardId));
 }