navari/laravel-zoho-desk

This package adds Zoho Desk API support to Laravel

v1.0.0 2024-02-18 02:05 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require navari/laravel-zoho-desk

You can publish the config file with:

php artisan vendor:publish --tag="laravel-zoho-desk-config"

This is the contents of the published config file:

return [
    'organizationId' => env('ZOHO_DESK_ORGANIZATION_ID', ''),
    'departmentId' => env('ZOHO_DESK_DEPARTMENT_ID', ''),
    'clientId' => env('ZOHO_DESK_CLIENT_ID', ''),
    'clientSecret' => env('ZOHO_DESK_CLIENT_SECRET', ''),
    'oAuthBaseUrl' => env('ZOHO_DESK_OAUTH_BASE_URL', ''),
    'refreshToken' => env('ZOHO_DESK_REFRESH_TOKEN', ''),
    'baseApiUrl' => env('ZOHO_DESK_BASE_API_URL', 'https://desk.zoho.com/api/v1/'),
    'agentEmail' => env('ZOHO_DESK_AGENT_EMAIL', ''),
];

Usage

$createTicketEntity = new \Navari\ZohoDesk\Entities\CreateTicketEntity();

$createTicketEntity->firstName = 'Larus';
$createTicketEntity->lastName = 'Navari';
$createTicketEntity->email = 'larustr@gmail.com';
$createTicketEntity->subject = 'Test Ticket';
$createTicketEntity->departmentId = '123456789';
$createTicketEntity->message = 'This is a test ticket';
$ticket = \Navari\ZohoDesk\ZohoDesk::createTicket($createTicketEntity);

Usage for other methods

All methods usage will be similar to the above example

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.