Search K
Appearance
Get the guestdata requirements for a specific event.
XS2event ID of the Ticket
NLD
curl -X GET \
'https://api.xs2event.com/v1/tickets/{ticket_id}/guestdata?country_hint=NLD' \
-H "Content-Type: application/json"
fetch('https://api.xs2event.com/v1/tickets/{ticket_id}/guestdata?country_hint=NLD', {headers:{'Content-Type':'application/json'}})
.then(response => response.json())
.then(data => console.log(data));
<?php
$url = 'https://api.xs2event.com/v1/tickets/{ticket_id}/guestdata';
$method = 'GET';
$headers = [
'Content-Type' => 'application/json',
];
$query = http_build_query([
'country_hint' => 'NLD',
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . $query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = 'https://api.xs2event.com/v1/tickets/{ticket_id}/guestdata'
params = {
'country_hint': 'NLD'
}
headers = {
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
print(response.json())