From 8a0db3675d82b2ce5a4cccef0ffac5f9a2134678 Mon Sep 17 00:00:00 2001 From: bgsrb Date: Sun, 2 Jul 2017 13:38:25 +0430 Subject: [PATCH] add CallMakeTTS --- src/KavenegarApi.php | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) 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