added the calendar api method