You are here

public function UsersAPIHandler::getall in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 src/UsersAPIHandler.php \Drupal\miniorange_2fa\UsersAPIHandler::getall()

File

src/UsersAPIHandler.php, line 45

Class

UsersAPIHandler

Namespace

Drupal\miniorange_2fa

Code

public function getall($tot_users) {
  $fields = array(
    'customerKey' => $this->customerId,
    'batchNo' => $tot_users,
    'batchSize' => 1,
  );
  $json = json_encode($fields);
  $url = MoAuthConstants::$AUTH_GET_ALL_USER_API;
  return MoAuthUtilities::callService($this->customerId, $this->apiKey, $url, $json);
}