Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php // Next line will load dependencies to run this example // Please refer to the READ..
Decoded Output download
<?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);
////////////////////////////////////////////////////
// Retrieve email statistics by mailbox provider. #
// GET /mailbox_providers/stats #
$query_params = json_decode('{"end_date": "2016-04-01", "mailbox_providers": "test_string", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}');
try {
$response = $sg->client->mailbox_providers()->stats()->get(null, $query_params);
print $response->statusCode() . "
";
print_r($response->headers());
print $response->body() . "
";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "
";
}
?>
Did this file decode correctly?
Original Code
<?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);
////////////////////////////////////////////////////
// Retrieve email statistics by mailbox provider. #
// GET /mailbox_providers/stats #
$query_params = json_decode('{"end_date": "2016-04-01", "mailbox_providers": "test_string", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}');
try {
$response = $sg->client->mailbox_providers()->stats()->get(null, $query_params);
print $response->statusCode() . "\n";
print_r($response->headers());
print $response->body() . "\n";
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
Function Calls
None |
Stats
MD5 | fed15dca0124a49527d698f5d0e4d9ea |
Eval Count | 0 |
Decode Time | 85 ms |