Moved calendar API calls to new file