I\'m using Outlook-SDK-Android (https://github.com/OfficeDev/Outlook-SDK-Android) to talk with Outlook Calendar REST API (https://msdn.microsoft.com/en-us/office/office365/a
mClient.getMe()
.getCalendarView()
.addParameter("startDateTime", startDate)
.addParameter("endDateTime", endDate)
.select("Subject,Start,End").
.read()
See https://msdn.microsoft.com/office/office365/api/complex-types-for-mail-contacts-calendar#UseODataqueryparametersSelectspecificpropertiestobereturned
There is a select
method:
public OrcCollectionFetcher<TEntity, TFetcher, TOperations> select(String select)
in OrcCollectionFetcher
class, so you can call it like this:
mClient.getMe()
.getCalendarView()
.addParameter("startDateTime", startDate)
.addParameter("endDateTime", endDate)
.select("Subject")
.read()
To get events from resource try this:
final List<Event> events = outlookClient
.getUsers()
.getById("meetingRoom@company.com")
.getCalendarView()
.addParameter("startDateTime", startDate)
.addParameter("endDateTime", endDate)
.read()