diff --git a/src/KavenegarApi.php b/src/KavenegarApi.php index bbaf926..24d8fe7 100644 --- a/src/KavenegarApi.php +++ b/src/KavenegarApi.php @@ -11,8 +11,8 @@ class KavenegarApi { protected $apiKey; - const APIPATH = "http://api.kavenegar.com/v1/%s/%s/%s.json/"; - const VERSION = "1.0.0"; + const APIPATH = "https://api.kavenegar.com/v1/%s/%s/%s.json/"; + const VERSION = "1.1.0"; public function __construct($apiKey) { if (!extension_loaded('curl')) { @@ -257,7 +257,7 @@ public function AccountConfig($apilogs, $dailyreport, $debug, $defaultsender, $m ); return $this->execute($path, $params); } - + public function VerifyLookup($receptor, $token, $token2, $token3, $template, $type = null) { $path = $this->get_path("lookup", "verify"); @@ -279,19 +279,16 @@ public function VerifyLookup($receptor, $token, $token2, $token3, $template, $ty return $this->execute($path, $params); } - public function VerifyLookupV2($receptor, $template, $type = null, $token, $token2, $token3) + public function CallMakeTTS($receptor, $message, $date = null, $localid = null) { - $path = $this->get_path("lookup", "verify"); + $path = $this->get_path("maketts", "call"); $params = array( - "template" => $template, "receptor" => $receptor, - "token" => $token, - "token2" => $token2, - "token3" => $token3, - "token10" => $token10, - "type" => $type + "message" => $message, + "date" => $date, + "localid" => $localid ); - return $this->execute($path, $params); - } + return $this->execute($path, $params); + } } -?> +?> \ No newline at end of file