public function setEndpoint($endpoint)
    {
        // Clean the credential information from the endpoint.
        $filterParams = ['affiliate_id', 'api_id'];
        $this->endpoint = DmmUrlManipulator::removeParamsFromUrl($endpoint, $filterParams);

        return $this;
    }