BaseAPI Class init