‘forecom’, ‘key’ => ‘wV56of209RWB7L1CTsu632c24fd8b5e7’, ‘endpoint’ => ‘ticket-add’, ‘type’ => ‘6’, ‘firstname’ => ‘Förnamn’, ‘lastname’ => ‘Efternamn’, ’email’ => ‘Mejladress’, ‘phone’ => ‘Telefonnummer’, ‘heading’ => ‘Ärenderubrik’, ‘description’ => ‘Beskriv ärendet’, ]; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, ‘https://forecom.workcloud.se/api/ticket’); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_TIMEOUT, 10); $curl_response = curl_exec($curl); $response_code = curl_getinfo($curl, CURLINFO_HTTP_CODE); curl_close($curl); if ($response_code == 200) { echo $curl_response; }else { echo $response_code; } ?>