protected function getEndpoint()
    {
        // If force production is in effect
        if ($this->force_production) {
            $this->force_production = false;
            return $this->endpoints['production'];
        }

        // Return the active endpoint
        return $this->endpoints[$this->active_endpoint];
    }