Adding 2fa API

This commit is contained in:
2016-01-20 15:14:58 -07:00
parent 2e8be09571
commit 320b6f9158
2 changed files with 72 additions and 0 deletions

View File

@@ -45,6 +45,18 @@ class SmsManager
return SmsSendResponse::createFromResponse($response);
}
/**
* @param string $number
* @param string $pin
* @param int $client_ref
* @return SmsSendResponse
*/
public function send2fa($number,$pin,$client_ref=false) {
$number = PhoneNumber::prefixFilter($number);
$response = $this->nexmoClient->send2faMessage($number,$pin,$client_ref);
return SmsSendResponse::createFromResponse($response);
}
public function sendBinary() {
throw new \Exception(__METHOD__.' not yet implemented');
}