You can only retrieve appointments for persons that are SuperOffice users (associates).The signed-in user must also have permission to view those appointments. Otherwise, an exception is thrown.
NSAppointment[] GetAppointmentList(Integer[] ids)
Fetches a collection of appointments corresponding to a list of IDs.
NSAppointment[] GetPersonDiary(Integer personId, DateTime startTime, DateTime endTime, Integer count)
Fetches a limited number of appointments within a time range for the given person. GetPersonDiary() will ignore appointments not shown in the user’s diary.
Set count to -1 to not restrict the collection of appointments retrieved.
NSAppointment[] GetPersonAppointments(Integer personId, Bool includeProjectAppointments, DateTime startTime, DateTime endTime, Integer count)
Same as GetPersonDiary(), but will also include all appointments in projects that the user is a member of if set to true.