/** * @param $Recipient * @param $PassCode * @return mixed */ public function VerifyNumber($Recipient, $PassCode) { $aParams = array('Recipient' => $Recipient, 'PassCode' => $PassCode); $valid = GUMP::is_valid($aParams, $this->Rules(__FUNCTION__)); if ($valid === TRUE) { return $this->client->Verify_VerifyNumber($aParams); } else { return $valid[0]; } }
/** * @param $Recipient * @return mixed */ public function CheckNumber($Recipient) { $aParams = array(); $aParams['Recipient'] = $Recipient; $valid = GUMP::is_valid($aParams, $this->Rules(__FUNCTION__)); if ($valid === true) { return $this->client->Checker_CheckNumber($aParams); } else { return $valid[0]; } }
/** * @param $CallID * @return mixed */ public function StopScheduled($CallID) { $aParams = array('CallID' => $CallID); $valid = GUMP::is_valid($aParams, $this->Rules(__FUNCTION__)); if ($valid === TRUE) { return $this->client->Voice_StopScheduled($aParams); } else { return $valid[0]; } }
/** * @param String $SenderID * @return stdClass */ public function DeleteSenderID($SenderID) { $aParams = array('SenderID' => $SenderID); $valid = GUMP::is_valid($aParams, $this->Rules(__FUNCTION__)); if ($valid === true) { return $this->client->DeleteSenderID($aParams); } else { return $valid[0]; } }
/** * @return mixed * @throws \Exception * @throws \OTS\API\Exception */ public function StopScheduled($MessageID) { try { $aParams = array('MessageID' => $MessageID); $valid = GUMP::is_valid($aParams, $this->Rules(__FUNCTION__)); if ($valid === true) { return $this->client->Messages_StopScheduled($aParams); } else { return $valid[0]; } } catch (Exception $e) { throw $e; } }