Shop Visitors
1 min
code examples curl request get \\ \ url https //tnapi ticketpay de/exports/shop visitors \\ \ header 'accept application/json' \\ \ header 'authorization string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("authorization", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //tnapi ticketpay de/exports/shop visitors", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //tnapi ticketpay de/exports/shop visitors") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["authorization"] = "string" response = https request(request) puts response read body import requests import json url = "https //tnapi ticketpay de/exports/shop visitors" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'authorization' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // response for get shop visitors { "total" 2, "page" 1, "size" 2, "data" \[ { "id" 4701, "event id" 125014, "today" 12, "yesterday" 83, "seven days" 258, "thirty days" 712, "ninety days" 712, "total" 712, "created iso" "2026 04 01t10 00 10+02 00", "updated iso" "2026 07 08t10 00 10+02 00" } ] }// response for a failed authentification { "message" "unauthorized" }
