PHP code example of marshmallow / zoho-desk

1. Go to this page and download the library: Download marshmallow/zoho-desk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marshmallow / zoho-desk example snippets


Ticket::setDueDate($ticket_id, now());
Ticket::comment($ticket_id, 'This comment should be added to this ticket', $public = false);
Ticket::attachment($ticket_id, $relative_storage_path);

// Or bind them all together
Ticket::of($ticket_id)
    ->setDueDate(now())
    ->comment('This comment should be added to this ticket', $public = false)
    ->attachment($relative_storage_path);

ZohoDesk::portal()->get('kbArticles/{articles_id});
bash
php artisan migrate
bash
php artisan vendor:publish --provider="Marshmallow\ZohoDesk\ZohoDeskServiceProvider"

php artisan zoho-desk:auth
bash
php artisan zoho-desk:list-departments