Skip to content

Commit

Permalink
Update VerifyLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
bgsrb committed Jun 21, 2017
1 parent fcb1756 commit a02bf97
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/KavenegarApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,26 @@ public function AccountConfig($apilogs, $dailyreport, $debug, $defaultsender, $m

public function VerifyLookup($receptor, $token, $token2, $token3, $template, $type = null)
{
return $this->VerifyLookupV2($receptor, $template, $type, $token, $token2, $token3, null);
$path = $this->get_path("lookup", "verify");
$params = array(
"receptor" => $receptor,
"token" => $token,
"token2" => $token2,
"token3" => $token3,
"template" => $template,
"type" => $type
);
if(func_num_args()>5){
$arg_list = func_get_args();
if(isset($arg_list[6]))
$params["token10"]=$arg_list[6];
if(isset($arg_list[7]))
$params["token20"]=$arg_list[7];
}
return $this->execute($path, $params);
}

public function VerifyLookupV2($receptor, $template, $type = null, $token, $token2, $token3, $token10)
public function VerifyLookupV2($receptor, $template, $type = null, $token, $token2, $token3)
{
$path = $this->get_path("lookup", "verify");
$params = array(
Expand Down

0 comments on commit a02bf97

Please sign in to comment.