UserScheduleGetEventRequest
Bases: OCIRequest
Get an event from a user schedule. The response is either a UserScheduleGetEventResponse or an ErrorResponse.
Attributes:
user_id (str):
schedule_key (ScheduleKey):
event_name (str):
Source code in src/mercury_ocip/commands/commands.py
Responses
Bases: OCIDataResponse
Response to UserScheduleGetEventRequest. The response contains the event of the user schedule.
Attributes:
start_date (int):
all_day_event (Optional[bool]):
start_time (Optional[HourMinute]):
end_time (Optional[HourMinute]):
end_date (int):
recurrence (Optional[Recurrence]):
Source code in src/mercury_ocip/commands/commands.py
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import UserScheduleGetEventRequest
client = Client()
command = UserScheduleGetEventRequest(
user_id=...,
schedule_key=...,
event_name=...,
)
response = client.command(command)
print(response)