Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/e0ipso/zendesk_api
https://github.com/e0ipso/zendesk_api
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/e0ipso/zendesk_api
- Owner: e0ipso
- Created: 2014-07-29T08:03:07.000Z (over 10 years ago)
- Default Branch: 7.x-1.x
- Last Pushed: 2014-09-17T15:31:03.000Z (over 10 years ago)
- Last Synced: 2024-10-12T02:26:38.092Z (3 months ago)
- Language: PHP
- Size: 175 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zendesk API
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.