Add class for accessing api