## Query Params import requests url = "https://api.omnystudio.com/v0/analytics/consumption/networks/c3d75285-1dc3-4e38-8aa7-aeac0130d699/summary" params = { 'publishedEndUtc': '2023-10-30', 'publishedStartUtc': '2023-10-21' } headers = { 'Authorization': 'Bearer token', } response = requests.request("GET", url, headers=headers, params=params) ## Payload url = "https://app.ticketmaster.com/sth-buy/ticketing_services.aspx?dsn=texans" headers = { 'Content-Type': 'application/json' , 'apikey': 'apikey' , 'Connection': 'keep-alive' } payload = {"header":{"src_sys_type":2,"ver":1,"src_sys_name":"test","archtics_version":"V999"},"command1":{"cmd":"get_attendance_incremental","start_datetime":startDateTime,"uid":"texans64","dsn":"texans"}} response = requests.request("POST", url ,headers=headers , data=json.dumps(payload))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter