BLOG

"http://phplaravel-355773-1270308.cloudwaysapps.com/api/newsletter/signup", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => array( "Authorization: Bearer ".$api_key ), CURLOPT_POSTFIELDS => $fields )); $response = curl_exec($curl); curl_close($curl); $signup = json_decode($response); if (is_object($signup)) header("Location: https://anntielens.be/index.php/site/ebook"); } ?>