PHP code example of marjose123 / laravel-zoho-cliq-alert
1. Go to this page and download the library: Download marjose123/laravel-zoho-cliq-alert 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/ */
marjose123 / laravel-zoho-cliq-alert example snippets
return [
/*
|--------------------------------------------------------------------------
| OAuth Credentials
|--------------------------------------------------------------------------
|
| These are OAuth credentials
use MarJose123\ZohoCliqAlert\Facades\ZohoCliqAlert;
use \MarJose123\ZohoCliqAlert\ZohoDataCenter;
ZohoCliqAlert::channel('marketing')
->asBot('MarketingWebsite')
->dataCenter(ZohoDataCenter::US)
->queue('default')
->message("You have a new subscriber to the {$newsletter->name} newsletter!")
->send();
use MarJose123\ZohoCliqAlert\Facades\ZohoCliqAlert;
use \MarJose123\ZohoCliqAlert\ZohoDataCenter;
ZohoCliqAlert::channel('marketing')
->asBot('MarketingWebsite')
->dataCenter(ZohoDataCenter::US)
->queue('default')
->message("You have a new subscriber to the {$newsletter->name} newsletter!",[
'card' => [
"title" => "ANNOUNCEMENT",
"theme" => "modern-inline",
"thumbnail" => "https://www.zoho.com/cliq/help/restapi/images/announce_icon.png"
],
'buttons' => [
[
"label" => "View",
"type" => "+",
"action" => [
"type" => "invoke.function",
"data" => [
"name" => "internlist"
]
]
]
]
])->send();