-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpretix-get-attendees.bru
More file actions
58 lines (46 loc) · 1.14 KB
/
pretix-get-attendees.bru
File metadata and controls
58 lines (46 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
meta {
name: Get Pretix Attendees
type: http
seq: 1
}
get {
url: https://pretix.eu/api/v1/organizers/denog/events/{{event}}/checkinlists/{{checkin_list_id}}/positions/
body: none
auth: none
}
params:query {
~page: 1
}
headers {
Authorization: Token {{pretix_api_token}}
}
vars:pre-request {
event: denog17
checkin_list_id: 418313
}
assert {
res.status: eq 200
}
script:post-response {
// Handle pagination if needed
const response = res.getBody();
if (response.next) {
console.log('Next page available:', response.next);
}
// Log count of results
if (response.results) {
console.log('Attendees in this page:', response.results.length);
}
}
docs {
# Pretix Get Attendees
Retrieves all attendees from a Pretix check-in list.
## Variables Required
- `pretix_api_token`: Your Pretix API token
- `event`: Event slug (default: denog17)
- `checkin_list_id`: Check-in list ID (default: 418313)
## Pagination
The API returns paginated results. Check the `next` field in the response for the next page URL.
## Original Script
Based on pull_attendee_data2.sh for DENOG17 Pre-Social Checkin list.
}