Dotaz:
<?php function SAPI($mt, $rq) { $ch = curl_init(); $op = array( CURLOPT_URL => 'https://api.ssls.cz/v2/'.$mt, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($rq), CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 100, CURLOPT_SSL_VERIFYHOST => false, // 2 CURLOPT_SSL_VERIFYPEER => false); // true curl_setopt_array($ch, $op); $rp = curl_exec($ch); curl_close($ch); return $rp; } $request['token'] = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $request['productCode'] = 'positive'; $request['domain'] = 'www.ssls.cz'; $response = SAPI('emails', $request); ?>