Skip to content

simple laravel zoho library no db required it use cache to store token

Notifications You must be signed in to change notification settings

okochunk/zoholib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

zoholib

laravel simple zoho library

installation

composer create-project yls/zoholib

Library to use part of https://desk.zoho.com/DeskAPIDocument list of feature

  • Authentication(OAuth) Generate Refresh Token
  • Generate Access Token
  • Get List Departments
  • Get List Agents
  • Get List Contacts
  • Create Ticket
  • create Ticket Comment

usage

add on .env

  • ZOHO_CLIENT_ID="3000.XXXX1R45EK2K8X8MY2ZVBOKR5DBQ3X"
  • ZOHO_CLIENT_SECRET="e137da3dff3axxxxxxxxxx0b3bb122543426211b7c"
  • ZOHO_REFRESH_TOKEN="4000.1841927626424bd4bxxxxxxxxxxxaa8.377acdba4a770fb653320fb8c042fd4c"
  • on your controller
$data['subject']     = Config::get('services.zoho.subject.leads_cm');
$data['id']          = $leads->mt_form_id;
$data['phone']       = $leads->mobile;
$data['email']       = $leads->email;
$data['name']        = $leads->name;
$data['department']  = Config::get('services.zoho.default_department_id');
$data['assignee_id'] = Config::get('services.zoho.assignee_id');

$data['description'] = 'Name: ' . $leads->name . '<br>';

$zoho = new ZohoService();
$ticket = $zoho->createTicket($data);

About

simple laravel zoho library no db required it use cache to store token

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages