yii-zendesk ZenDesk API wrapper class for Yii

  1. Requirements
  2. Usage

Yii-Zendesk is a helper class for using the zendesk API.

Helper functions include finding user by email, finding ticket by user, find ticket by id, find all users and find all tickets. Extension also includes sorting function and a curl wrapper function for custom API calls.

Requirements

Yii 1.1 or above, valid ZenDesk account and access to the API Key.

Usage

Load using config main

'components' => array(
............
  'zendesk' => array(
    'class' => 'ext.zendesk.ZenDesk',
    'token' => 'XXXXXXXXXXXXX', //From ZenDesk Account Settings
    'email' => 'example@email.com', //Account associated with ZenDesk
    'subdomain' => 'mycompanyname' //From ZenDesk Account
  ),
$zendesk = Yii::app()->zendesk;
$emails = CHtml::listData($customer->userEmails,'id','email');

$zenDeskData = $zendesk->search(
    $zendesk->findTicketsByEmailCriteria($emails)
);

$tickets = $zenDeskData->results;
0 0
2 followers
195 downloads
Yii Version: Unknown
License: GPL-2.0
Category: Web Service
Tags: api, zendesk
Developed by: aCodeSmith
Created on: Jan 14, 2014
Last updated: 4 years ago

Downloads

show all

Related Extensions