"pepa", "password" => "zdepa"); $sms = array( "sender" => "Odorik.cz", "recipient" => "00420999123456789", "message" => "Testovaci SMS zprava pres Odorik.cz API"); $cc = curl_init("https://www.odorik.cz/api/v1/sms"); curl_setopt($cc, CURLOPT_RETURNTRANSFER, true); curl_setopt($cc, CURLOPT_POSTFIELDS, $authentication + $sms); $response = curl_exec($cc); if (strstr($response, "successfully_sent") == false) { echo "SMS zpravu se nepodarilo odeslat. Duvod: " . $response; } curl_close($cc); ?>