// require 'vendor/autoload.php';
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
$client = new Client();
$request = new Request(
"POST",
"https://api.fincenfetch.com/v1/create-report",
[
"Authorization" => "Bearer b7a7d654-8254b624-0ce54f9c-d430d3bf-e362b917-0d113652-2ea2bb9d-3aac3ef1",
"Content-Type" => "application/json; charset=utf-8"
],
json_encode([
"company_name": "Acme, Inc.",
"email": "[email protected]",
"send_email": true,
"get_report_link": true,
])
);
$response = $client->send($request);
echo "Response HTTP : " . $response->getStatusCode();