Running sample API codes
I tried to run one of API sample codes provided in support site to retrieve calendars information assigned to a project, I created a session to login and try to get info usiing below codes:
BOIterator <Project> projIter = gom.loadProjects(Project.getAllFields(), "Id = 'Edison High'", null);
if (projIter.hasNext())
{
//Load all Project Calendars
BOIterator <Calendar> projCalIter = p.loadProjectCalendars(Calendar.getAllFields(), null, null);
System.out.println("Project Calendars ");
System.out.println("-------------------------");
while (projCalIter.hasNext())
{
Calendar projCal = projCalIter.next();
System.out.println("Calendar: " + projCal.getName());
//Load Holiday Exception Dates
System.out.println("Holiday Exception Dates ");
System.out.println("-------------------------");
List <Date> holidayExceptions;;