I'm trying to integrate zoom api into my django website (it's a school project) I've been using prschmid/zoomus.
This is the code I have right now
import json
from zoomus import ZoomClient
client = ZoomClient('1bFDBicDQxmSAZbECE5', '4HBPY8c190hY7DF1xf9S665iTy3GGlgJdw',version =2)
user_list_response = client.user.list()
user_list = json.loads(user_list_response.content)
print(json.loads(user_list_response.content))
for user in user_list['users']:
user_id = user['id']
print(json.loads(client.meeting.list(user_id=user_id).content))
client.meeting.get()
and this is the part of the response I get
meetings': {start_time': '2021-03-01T17:22:23Z', 'duration': 60, 'timezone': 'America/New_York', 'created_at': '2021-03-01T17:22:22Z', 'join_url': 'https://ift.tt/3uTEPDA}
My question is, how do I take that generated meeting link and put it in the variable so that then I can use it in this method to send an email
message = "Your appointment has been approved by the provider, use this link to enter the meeting: (here should be a zoom meeting link) "
send_mail(
subject,
message,
email_info.EMAIL_HOST_USER,
[apt.patient.user.email],
fail_silently=False,
)
Aucun commentaire:
Enregistrer un commentaire