protected function buildEndpoint($api, $version, $endpoint)
    {
        return implode('/', [
            $api,
            $this->config['protocol'],
            $version,
            $this->config['format'],
            $endpoint,
        ]);
    }