$this->apiEndPoint was always overwriten. Fixed that bug