Replies: 1 comment
-
An event attendee has a response_status property indicating this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have written a code to retrieve calendar information. I would appreciate it if you could provide guidance on how to obtain the response_status information for the invitees.
`
import datetime as dt
import pandas as pd
from O365 import Account, MSGraphProtocol
import html2text
CLIENT_ID = "xx"
CLIENT_SECRET = "yy"
credentials = (CLIENT_ID, CLIENT_SECRET)
protocol = MSGraphProtocol()
scopes = ['Calendars.Read.Shared']
account = Account(credentials, protocol=protocol)
if account.authenticate(scopes=scopes):
print('Authenticated!')
schedule = account.schedule()
calendar = schedule.get_default_calendar()
q = calendar.new_query('start').greater_equal(dt.datetime(2023, 1, 1))
q.chain('and').on_attribute('end').less_equal(dt.datetime(2023, 12, 30))
events = calendar.get_events(limit=500, query=q, include_recurring=True)
subjects = []
starts = []
ends = []
locations = []
attendees_all = []
body = []
body_all = []
organizers = []
created_all = []
sensitivity_all = []
isAllDay_all = []
is_online_meeting_all = []
for event in events:
subjects.append(event.subject)
starts.append(event.start)
ends.append(event.end)
locations.append(event.location)
data = {
'Subject': subjects,
'Start': starts,
'End': ends,
'Location': locations,
'Attendees': attendees_all,
'Body': body,
'Organizer': organizers,
'Created':created_all,
'Sensitivity':sensitivity_all,
'isAllDay':isAllDay_all,
'is_online_meeting_all' : is_online_meeting
}
df = pd.DataFrame(data)
Beta Was this translation helpful? Give feedback.
All reactions