Package zendeskapi.models.organizations

Examples of zendeskapi.models.organizations.IndividualOrganizationResponse


   * @param organization
   * @return
   * @throws ZendeskApiException
   */
  public IndividualOrganizationResponse createOrganization(Organization organization) throws ZendeskApiException {
    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


   * @param organization
   * @return
   * @throws ZendeskApiException
   */
  public IndividualOrganizationResponse updateOrganization(Organization organization) throws ZendeskApiException {
    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

TOP

Related Classes of zendeskapi.models.organizations.IndividualOrganizationResponse

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.