ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test-old/mb/plugins/sendgrid/examples/helpers/stats
/
home
mhhtmff
app
NH-HR-test-old
mb
plugins
sendgrid
examples
helpers
stats
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
example.php
1.21 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test-old/mb/plugins/sendgrid/examples/helpers/stats/example.php
<?php // Next line will load dependencies to run this example // Please refer to the README how to use in your project require_once __DIR__ . '/../../../sendgrid-php.php'; $apiKey = getenv('SENDGRID_API_KEY'); $sg = new \SendGrid($apiKey); // Provide date in YYYY-MM-DD format $stats = new \SendGrid\Stats\Stats('2017-10-18'); //$response = $sg->client->categories()->post(['category' => 'cat2']); //$response = $sg->client->categories()->get(null, $query_params); $globalResponse = $sg->client->stats()->get(null, $stats->getGlobal()); $categoryResponse = $sg->client->categories()->stats()->get(null, $stats->getCategory(['category1', 'category2'])); $categorySumResponse = $sg->client->categories()->stats()->sums()->get(null, $stats->getSum()); $subuserResponse = $sg->client->subusers()->stats()->get(null, $stats->getSubuser(['user1', 'user2'])); $subuserSumResponse = $sg->client->subusers()->stats()->sums()->get(null, $stats->getSum()); $subuserMonthlyResponse = $sg->client->subusers()->stats()->monthly()->get(null, $stats->getSubuserMonthly()); var_dump($globalResponse); var_dump($categoryResponse); var_dump($categoryResponse); var_dump($subuserResponse); var_dump($subuserSumResponse); var_dump($subuserMonthlyResponse);
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply