Hi,
How can I save a Python query to a file?
import requests
import json
apiKey = “”
apiUrl = “https://api.monday.com/v2”
headers = {“Authorization” : apiKey}
query2 = ‘{boards(limit:2 ids: 1455154608) {name id description items { name column_values{title id type text } } } }’
data = {‘query’ : query2}
r = requests.post(url=apiUrl, json=data, headers=headers) # make request
print(r.json())
Thanks in Advance!