public function MandrillAPI::getURLTimeSeries in Mandrill 8
Gets recent history for a URL.
Parameters
string $url: The URL.
Return value
array Array of URL history.
Overrides MandrillAPIInterface::getURLTimeSeries
File
- src/
MandrillAPI.php, line 331
Class
- MandrillAPI
- Service class to integrate with Mandrill.
Namespace
Drupal\mandrillCode
public function getURLTimeSeries($url) {
$data = array();
try {
if ($mandrill = $this
->getAPIObject()) {
$data = $mandrill->urls
->timeSeries($url);
}
} catch (\Exception $e) {
\Drupal::messenger()
->addError(t('Mandrill: %message', array(
'%message' => $e
->getMessage(),
)));
$this->log
->error($e
->getMessage());
}
return $data;
}