Hello again,
I do not have experience with Python, but it looks like the 3 dots might not be being taken as it should. I recreated this query in Postman and exported it to Python. I hope that helps!
Python - Requests:
import requests
import json
url = "https://api.monday.com/v2/"
payload = "{\"query\":\"{\\n items(ids: 5256361524) {\\n column_values {\\n id\\n value\\n ... on TimeTrackingValue {\\n history {\\n status\\n ended_at\\n started_at\\n started_user_id\\n manually_entered_end_date\\n }\\n }\\n }\\n id\\n }\\n}\",\"variables\":{}}"
headers = {
'API-Version': '2023-10',
'Authorization': 'MYAPITOKEN',
'Content-Type': 'application/json',
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Python http.client:
import http.client
import json
conn = http.client.HTTPSConnection("api.monday.com")
payload = "{\"query\":\"{\\n items(ids: 5256361524) {\\n column_values {\\n id\\n value\\n ... on TimeTrackingValue {\\n history {\\n status\\n ended_at\\n started_at\\n started_user_id\\n manually_entered_end_date\\n }\\n }\\n }\\n id\\n }\\n}\",\"variables\":{}}"
headers = {
'API-Version': '2023-10',
'Authorization': 'MYAPITOKEN',
'Content-Type': 'application/json',
}
conn.request("POST", "/v2/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Cheers,
Matias