calendar and api