src/Base.php
protected function call($method, $path, array $options = [], $needsCredentials = true)
    {
        $options['headers'][self::API_VERSION_HEADER] = $this->apiVersion;

        if ($needsCredentials) {
            $options['headers'][self::API_KEY_HEADER] = $this->credentials['key'];
        }

        return $this->client->request($method, $path, $options);
    }
protected function call($method, $path, array $options = [], $needsCredentials = true)
    {
        $options['headers'][self::API_VERSION_HEADER] = $this->apiVersion;

        if ($needsCredentials) {
            $options['headers'][self::API_KEY_HEADER] = $this->credentials['key'];
        }

        return $this->client->request($method, $path, $options);
    }
protected function call ( $ method , $ path , array $ options = [ ] , $ needsCredentials = true ) { $ options [ 'headers' ] [ self :: API_VERSION_HEADER ] = $ this -> apiVersion ; if ( $ needsCredentials ) { $ options [ 'headers' ] [ self :: API_KEY_HEADER ] = $ this -> credentials [ 'key' ] ; } return $ this -> client -> request ( $ method , $ path , $ options ) ; }
Call the API rokka endpoint.

@param string $method           HTTP method to use
@param string $path             Path on the API
@param array  $options          Request options
@param bool   $needsCredentials True if credentials are needed

@throws GuzzleException

@return ResponseInterface
Call the API rokka endpoint .