Response Asana:
{“errors”:[{“message”:“The remote server did not respond within 10000 milliseconds.”,“help”:“For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors”}]}
Response Server (PHP / Laravel):
public function confirm()
{
$key = Request::header(‘X-Hook-Secret’);
// Valida key
if ($key) {
$response = FacadeResponse::make('', 200);
$response->header('X-Hook-Secret', $key);
$response->header('Content-Type', 'application/json');
$response->header('Accept', 'application/json');
$response->setProtocolVersion('1.1');
$response->setStatusCode('200');
return $response;
}
}