My Python code is not working to get the Meetings data

The following code is not working, it is suppose GET Meetings:

import jwt
import http.client
import datetime
import json

api_key = '.....'
api_sec = '.....'

payload = {
'iss': api_key,
'exp': + datetime.timedelta(hours=2)
jwt_encoded = str(jwt.encode(payload, api_sec), 'utf-8')

conn = http.client.HTTPSConnection("")
headers = {
'authorization': "Bearer %s" % jwt_encoded,
'content-type': "application/json"
conn.request("GET", "/metrics/meetings", headers=headers)
res = conn.getresponse()
response_string ='utf-8')
response_obj = json.loads(response_string)

Hi @mohammed_zaid,

Have you tried testing the request out in a tool like Postman first? You might also find Postman helpful for generating the code necessary to initiate the request. If you don’t already have Postman, I recommend downloading it here:

Here is an example of a GET request in Python, which you may also find helpful:

import requests

url = ""

payload = {}
headers = {
  'Authorization': 'Bearer {token}'

response = requests.request("GET", url, headers=headers, data = payload)



This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.