Rubrik | Phone | July 2022

Anonymous User
1531
Jul 20, 2022

Question:
Given a blackbox sendEmail() API, implement two APIs to book calendar and send notification to all the invites(email ids) at the same of when the event would occur based on it's time of event and isRecurring flag. If isRecurring == true, repeat the send notification everyday at the same time else only send it once at the scheduled time.

addEvent(time, list of emails, message, isRecurring) 
Eg.
["15:00:00", {"rty@dd.com", "wer@gg.com", "rwq@qq.com"}, "message1", true]
["15:00:01", {"rty@dd.com", "wer@gg.com"}, "message2", false]

sendEvent()
Comments (0)