private function assertReqParameters($keys, $params = null)
    {
        if (!empty($keys['args']['req'])) {
            if (!$params) {
                $msg = 'No parameters provided. (HINT: Reference the $keys '
                     . 'property at the top of the API class file for '
                     . 'required and optional parameters.)';
                throw new ApiException($msg);
            }

            foreach ($keys['args']['req'] as $k) {
                if (!isset($params[$k])) {
                    $msg = 'Required parameter `'.$k.'` not provided. '
                         . '(HINT: Reference the $keys '
                         . 'property at the top of the API class file for '
                         . 'required and optional parameters.)';
                    throw new ApiException($msg);
                }
            }
        }
    }
private function assertReqParameters($keys, $params = null)
    {
        if (!empty($keys['args']['req'])) {
            if (!$params) {
                $msg = 'No parameters provided. (HINT: Reference the $keys '
                     . 'property at the top of the API class file for '
                     . 'required and optional parameters.)';
                throw new ApiException($msg);
            }

            foreach ($keys['args']['req'] as $k) {
                if (!isset($params[$k])) {
                    $msg = 'Required parameter `'.$k.'` not provided. '
                         . '(HINT: Reference the $keys '
                         . 'property at the top of the API class file for '
                         . 'required and optional parameters.)';
                    throw new ApiException($msg);
                }
            }
        }
    }
private function assertReqParameters ( $ keys , $ params = null ) { if ( ! empty ( $ keys [ 'args' ] [ 'req' ] ) ) { if ( ! $ params ) { $ msg = 'No parameters provided. (HINT: Reference the $keys ' . 'property at the top of the API class file for ' . 'required and optional parameters.)' ; throw new ApiException ( $ msg ) ; } foreach ( $ keys [ 'args' ] [ 'req' ] as $ k ) { if ( ! isset ( $ params [ $ k ] ) ) { $ msg = 'Required parameter `' . $ k . '` not provided. ' . '(HINT: Reference the $keys ' . 'property at the top of the API class file for ' . 'required and optional parameters.)' ; throw new ApiException ( $ msg ) ; } } } }
Validate required parameters for API.

@param array $keys Array of required and optional
authentication and argument keys (string) for API method.
@param array $params API specific parameters.

@throws MyAllocator\phpsdk\src\Exception\ApiException
Validate required parameters for API .