Skip to content

Commit

Permalink
Merge pull request #2 from KaveNegar/dev-master
Browse files Browse the repository at this point in the history
add CallMakeTTS
  • Loading branch information
bgsrb authored Jul 2, 2017
2 parents a02bf97 + 8a0db36 commit 12fff55
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions src/KavenegarApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down Expand Up @@ -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");
Expand All @@ -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);
}
}
?>
?>

0 comments on commit 12fff55

Please sign in to comment.