public function ZoomApiClient::validateConfiguration in Zoom API 8
Same name and namespace in other branches
- 2.0.x 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\ClientCode
public function validateConfiguration() {
  $props = [
    'apiKey',
    'apiSecret',
    'baseUri',
  ];
  foreach ($props as $prop) {
    if (empty($this->{$prop})) {
      return FALSE;
    }
  }
  return TRUE;
}