You are here

public function UsersAPIHandler::fetchLicense in Google Authenticator / 2 Factor Authentication - 2FA 7

File

classes/UsersAPIHandler.php, line 66

Class

UsersAPIHandler

Code

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