So far I have done the following:(Using Python 3.8)
Code: Select all
import requests
import json
response = requests.get('https://abc.example.com/home/john.doe/calendar?fmt=json&start=-1week', auth=('user', 'password'))
res = response.json()
for i,j in res.items():
for k in j:
print(k['inv'][0]['comp'][0]['name'])
Can you point my mistake?