You are here

public function UsersAPIHandler::fetchLicense 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::fetchLicense()

File

src/UsersAPIHandler.php, line 83

Class

UsersAPIHandler

Namespace

Drupal\miniorange_2fa

Code

public function fetchLicense() {
  $fields = array(
    'customerId' => $this->customerId,
    'applicationName' => 'drupal8_2fa',
  );
  $json = json_encode($fields);
  $url = MoAuthConstants::$CUSTOMER_CHECK_LICENSE;
  return MoAuthUtilities::callService($this->customerId, $this->apiKey, $url, $json);
}