public function signatureSearch($start_date = null, $uniqueId = null)
{
if ($uniqueId && $this->client) {
$this->client->setUri($this->config['uri'] . str_replace('searches', $uniqueId, $this->config['endpoints']['signatures']));
$method = 'GET';
// just to make sure that start date is not specified
$start_date = null;
} else {
if ($this->client) {
$this->client->setUri($this->config['uri'] . $this->config['endpoints']['signatures']);
$method = 'POST';
}
}
if ($start_date && $this->client) {
$this->client->setParameterPost(array('start_date' => $start_date));
}
if ($this->client) {
$response = $this->client->request($method);
return json_decode($response->getBody(), true);
}
}