Package zendeskapi.exception

Examples of zendeskapi.exception.ZendeskApiException


   */
  public boolean deleteGroupMembership(long groupMembershipId) throws ZendeskApiException {
    try {
      return genericDelete("group_memberships/" + groupMembershipId + ".json");
    } catch (Exception e) {
      throw new ZendeskApiException(e);
    }
  }
View Full Code Here


   */
  public boolean deleteUserGroupMembership(long userId, long groupMembershipId) throws ZendeskApiException {
    try {
      return genericDelete("users/" + userId + "/group_memberships/" + groupMembershipId + ".json");
    } catch (Exception e) {
      throw new ZendeskApiException(e);
    }
  }
View Full Code Here

  public GroupTopicResponse getTopics() throws ZendeskApiException {
    try {
      return genericGet("topics.json", GroupTopicResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException(e);
    }
  }
View Full Code Here

  public IndividualTopicResponse getTopicById(long topicId) throws ZendeskApiException {
    try {
      return genericGet("topics/" + topicId + ".json", IndividualTopicResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException(e);
    }
  }
View Full Code Here

      sb.append(id).append(",");
    }
    try {
      return genericGet("topics/show_many?ids=" + sb.toString() + ".json", GroupTopicResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException(e);
    }
  }
View Full Code Here

    IndividualOrganizationResponse orgToCreate = new IndividualOrganizationResponse();
    orgToCreate.setOrganization(organization);
    try {
      return genericPost("organizations.json", orgToCreate, IndividualOrganizationResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException("Creation of organization " + organization.getName() + " failed", e);
    }
  }
View Full Code Here

    IndividualOrganizationResponse orgToUpdate = new IndividualOrganizationResponse();
    orgToUpdate.setOrganization(organization);
    try {
      return genericPut("organizations/" + organization.getId() + ".json", orgToUpdate, IndividualOrganizationResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException("Update of organization " + organization.getName() + " failed", e);
    }

  }
View Full Code Here

   */
  public boolean deleteOrganization(long id) throws ZendeskApiException {
    try {
      return genericDelete("organizations/" + id + ".json");
    } catch (Exception e) {
      throw new ZendeskApiException("Deletion of organization with id " + id + " failed", e);
    }
  }
View Full Code Here

   */
  public GroupSatisfactionResponse getSatisfactionRatings() throws ZendeskApiException {
    try {
      return genericGet("satisfaction_ratings.json", GroupSatisfactionResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException("Listing of all satisfaction ratings failed", e);
    }
  }
View Full Code Here

   */
  public GroupSatisfactionResponse getReceivedSatisfactionRatings() throws ZendeskApiException {
    try {
      return genericGet("satisfaction_ratings/received.json", GroupSatisfactionResponse.class);
    } catch (Exception e) {
      throw new ZendeskApiException("Listing of satisfaction ratings provided by customers failed", e);
    }
  }
View Full Code Here

TOP

Related Classes of zendeskapi.exception.ZendeskApiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.