public function requestSms($authyId, $force = false) {
    $data = array(
      'authy_id' => $authyId,
      'force'    => $force,
    );

    $result = $this->apiCall('sms', $data);

    if ($result === false) {
      $this->lastError = 'AUTHY_SERVER_ERROR';
      return false;
    }

    if (isset($result->errors)) {
      $this->lastError = 'AUTHY_SERVER_INVALID_DATA';
      return false;
    }

    return true;
  }
public function requestSms($authyId, $force = false) {
    $data = array(
      'authy_id' => $authyId,
      'force'    => $force,
    );

    $result = $this->apiCall('sms', $data);

    if ($result === false) {
      $this->lastError = 'AUTHY_SERVER_ERROR';
      return false;
    }

    if (isset($result->errors)) {
      $this->lastError = 'AUTHY_SERVER_INVALID_DATA';
      return false;
    }

    return true;
  }
public function requestSms ( $ authyId , $ force = false ) { $ data = array ( 'authy_id' => $ authyId , 'force' => $ force , ) ; $ result = $ this -> apiCall ( 'sms' , $ data ) ; if ( $ result === false ) { $ this -> lastError = 'AUTHY_SERVER_ERROR' ; return false ; } if ( isset ( $ result -> errors ) ) { $ this -> lastError = 'AUTHY_SERVER_INVALID_DATA' ; return false ; } return true ; }
Request SMS token.

@param int $authyId
Authy ID to request SMS token for.

@param bool $force
Force sending of SMS even for users with App.

@return boolean
Returns true if SMS request was OK. false if not.
Request SMS token .