public dynamic GetCalendarEvents(int accountID, int calendarID, bool past = false)
{
if (IsAuthenticated)
{
if (!past)
{
return _getJSONFromURL(string.Format(_BaseCampAPIURL, accountID, string.Format("calendars/{0}/calendar_events", calendarID)));
}
else
{
return _getJSONFromURL(string.Format(_BaseCampAPIURL, accountID, string.Format("calendars/{0}/calendar_events/past", calendarID)));
}
}
else
{
throw new Exceptions.UnauthorizedException();
}
}