-
Notifications
You must be signed in to change notification settings - Fork 0
/
ua_goalhack_meetings.py
39 lines (30 loc) · 1.28 KB
/
ua_goalhack_meetings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""
This will print all of the UUIDs from each instance of past Goal Hack Meetings
"""
import requests
import json
# TODO: Find a way to parse through the URL and use a for loop to go through and insert a new meeting ID each time
# "https://api.zoom.us/v2/past_meetings/{{ZOOM_MEETING_ID}}/instances"
url = "https://api.zoom.us/v2/past_meetings/81483069736/instances"
payload = {}
headers = {
'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaFZmRTRaTVNZTzloRUpGMkttenVRIiwiZXhwIjoxNjA2MTA0MjM5fQ.DnWPwA3qIvqdRUmVmSfyCA8G_I3rcLJkOXohKkUF2Rw',
'Cookie': '_zm_lang=en-US; _zm_mtk_guid=16371b47234c4c608b558ff0521fc5fb; _zm_date_format=mm/dd/yy; cred=D86BE0CA56F9E9F3EA8330AE44982BBF'
}
response = requests.request("GET", url, headers=headers, data=payload)
# print(response.text.encode('utf8'))
# This is a dictionary with a list of dictionaries {[ {} {} ]}
meetings_response = response.text.encode('utf8')
meetings_parsed = json.loads(meetings_response)
def get_meetings():
meeting = meetings_parsed["meetings"]
# print(meeting)
goalhack_uuid = []
for uuid in meeting:
# uuid = meeting["uuid"]
uuid = uuid["uuid"]
goalhack_uuid.append(uuid)
# print(uuid["uuid"])
return goalhack_uuid
get_meetings()
# print(get_meetings())