How would I parse the current system date as a parameter in the URL as a string.
I want the current system date as 'start' and 'end' date to be the last 7 days from the system date.
Here's my code
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer 123456',
}
params = {
'mailbox' : '192659',
'types' : 'email',
'officeHours' : 'true',
'start' : '2019-09-21T00:00:00Z',
'end' : '2019-09-22T00:00:00Z',
}
response = requests.get('https://api.helpscout.net/', headers=headers, params=params)
print(response.json())
Thanks!