protected function response(ResponseInterface $response)
{
$res = json_decode($response->getBody()->getContents());
if (isset($res->errors)) {
throw new SendCloudException(array_get($res->errors, 0));
}
return true;
}