You are here

public function ZoomApiClient::validateConfiguration in Zoom API 2.0.x

Same name and namespace in other branches
  1. 8 src/Client/ZoomApiClient.php \Drupal\zoomapi\Client\ZoomApiClient::validateConfiguration()

Used to validate Configuration.

This could be more thorough.

Return value

bool TRUE or FALSE.

File

src/Client/ZoomApiClient.php, line 189

Class

ZoomApiClient
Uses http client to interact with the Zoom API.

Namespace

Drupal\zoomapi\Client

Code

public function validateConfiguration() {
  $props = [
    'apiKey',
    'apiSecret',
    'baseUri',
  ];
  foreach ($props as $prop) {
    if (empty($this->{$prop})) {
      return FALSE;
    }
  }
  return TRUE;
}