Begin logic for making calls to API endpoints