cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
373
Views
10
Helpful
2
Replies

Pulling meeting data via webex api

WEBEXAPINEWBIE
Level 1
Level 1

Created an API to pull meeting data from Webex by specific date, but the API is pulling meetings from outside the date range. Also, it's not pulling all meetings. Anyone got any tips to improve code? 

import http.client
import pandas as pd
import json
import csv

conn = http.client.HTTPSConnection("webexapis.com")
payload = ''
headers = {
'Authorization': 'Bearer ************************************'
}
conn.request("GET", "/v1//meetings?meetingType=meetingSeries&from=2022-08-22&to=2023-08-23", payload, headers)
res = conn.getresponse()
data = res.read()

df2 = data

df = pd.read_json(data)

scheduled_meeting_data = df['items']

data_file = open('scheduledMeeting_data.csv', 'w')

csv_writer = csv.writer(data_file)

count = 0

for f in scheduled_meeting_data:
if count == 0:
header = f.keys()
csv_writer.writerow(header)
count +=1

csv_writer.writerow(f.values())

data_file.close()

2 Replies 2

Jeff Marshall
Cisco Employee
Cisco Employee

If you're wanting meetings that have already happened with a specific date range then you would use meetingType=meeting. That will pull any ended or inProgress meetings. Using meetingSeries will pull the scheduling details for meetings and not the actual session details.

Janos Benyovszki
Cisco Employee
Cisco Employee

@WEBEXAPINEWBIE can you please test the same outside your code, on the Dev portal for example: https://developer.webex.com/docs/api/v1/meetings/list-meetings ? Do you get the same result? If you can reproduce it that way, feel free to open a ticket with our team - email to devsupport@webex.com .