Description
Is the ‘meeting_invitees’ list in the settings option not supposed to send emails to the invitees? It did not send invitation mails in my case and I am new to the API so not sure if this is expected behavior or I am doing something wrong. The code used is as follows:
import requests
import json
account_id = "MyAccountId"
client_id = "MyClientId"
client_secret = "MyClientSecret"
get_token_url = f"https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_id}"
resp = requests.post(get_token_url, auth=(client_id, client_secret))
resp_json = resp.json()
# print(resp_json)
create_meeting_url = "https://api.zoom.us/v2/users/me/meetings"
headers = {
"Authorization": f"Bearer {resp_json['access_token']}",
"content-type": "application/json"
}
meeting_details = {
"topic": "Demo meeting",
"type": 2,
"start_time": "2022-10-20T22: 15: 00",
"duration": "45",
"timezone": "Asia/Calcutta",
"agenda": "To test invitees",
"settings": {
"meeting_invitees": [
{"email": "email1@gmail.com"},
{"email": "email2@gmail.com"}
]
}
}
resp = requests.post(
create_meeting_url,
data=json.dumps(meeting_details),
headers=headers
)
resp_json = resp.json()
print(resp_json)
I found some other discussions related to this issue (like this, this and this) but didn’t get whether this is the expected behavior or not. It would be very helpful if someone could tell me about this. Also, I am using a free account.