Zendesk Logo

This project is not covered by Drupal’s security advisory policy.

This module uses CTools plugins to help you interact with the Zendesk API.
Currently there are 2 supported plugins.

This module will also give you new Drupal API’s form fields that will allow you
to seamlessly integrate your Zendesk fields in Drupal forms and submit those
forms over to Zendesk.

Endpoints

The endpoint plugin will help you store your credentials and make calls to the
API.

To submit a form to Zendesk do something like:

php
…
$body = array(
  'ticket' => array(…),
);
try {
  $ticket = zendesk_api_get_plugin_handler('submit_ticket', 'endpoint');
  $data = $ticket->call('POST', $body);
}
catch (\ZendeskAPIException $e) {
  watchdog_exception('zendesk_forms', $e);
}

Fields

The fields plugin is used by the new zendesk_field form element to allow you
to use custom fields as defined in Zendesk in Drupal’s Form API.

Supported field types are:

  • Options: A select field with options defined in Zendesk. It will also pull
    title and description from Zendesk.
  • Text: A text field that will pull title and description from Zendesk.

Important info

Issue management is done in GitHub at https://github.com/mateu-aguilo-bosch/zendesk_api.

Drupal.org releases will be updated periodically, so feel free to depend on them.

Supporting organizations: 
Development and maintenance

Project information

Releases