private function validateApiParameters($keys = null, $params = null)
    {
        // Assert API has defined an id/endpoint
        $this->assertApiId();

        // Assert API keys array structure is valid
        $this->assertKeysArrayValid($keys);

        // Assert keys array has minimum required optional parameters
        $this->assertKeysHasMinOptParams($keys, $params);

        // Assert and set authentication parameters from Auth object
        $params = $this->setAuthenticationParameters($keys, $params, 'req');
        $params = $this->setAuthenticationParameters($keys, $params, 'opt');

        // Assert required argument parameters exist (non-authentication)
        $this->assertReqParameters($keys, $params);

        // Remove extra parameters not defined in keys array
        $this->removeUnknownParameters($keys, $params);

        return $params;
    }
private function validateApiParameters($keys = null, $params = null)
    {
        // Assert API has defined an id/endpoint
        $this->assertApiId();

        // Assert API keys array structure is valid
        $this->assertKeysArrayValid($keys);

        // Assert keys array has minimum required optional parameters
        $this->assertKeysHasMinOptParams($keys, $params);

        // Assert and set authentication parameters from Auth object
        $params = $this->setAuthenticationParameters($keys, $params, 'req');
        $params = $this->setAuthenticationParameters($keys, $params, 'opt');

        // Assert required argument parameters exist (non-authentication)
        $this->assertReqParameters($keys, $params);

        // Remove extra parameters not defined in keys array
        $this->removeUnknownParameters($keys, $params);

        return $params;
    }
private function validateApiParameters ( $ keys = null , $ params = null ) { // Assert API has defined an id/endpoint $ this -> assertApiId ( ) ; // Assert API keys array structure is valid $ this -> assertKeysArrayValid ( $ keys ) ; // Assert keys array has minimum required optional parameters $ this -> assertKeysHasMinOptParams ( $ keys , $ params ) ; // Assert and set authentication parameters from Auth object $ params = $ this -> setAuthenticationParameters ( $ keys , $ params , 'req' ) ; $ params = $ this -> setAuthenticationParameters ( $ keys , $ params , 'opt' ) ; // Assert required argument parameters exist (non-authentication) $ this -> assertReqParameters ( $ keys , $ params ) ; // Remove extra parameters not defined in keys array $ this -> removeUnknownParameters ( $ keys , $ params ) ; return $ params ; }
Validate authentication and argument parameters for an API.

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

@return array Validated API parameters.
Validate authentication and argument parameters for an API .