[Python] Change the attendee checked_in value via the Eventbrite Web API

Discussão em 'Python' iniciado por Stack, Abril 2, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to use Python to change the 'checked_in' status of attendees of an Eventbrite event. Reading the status is quite easy but it's not clear in the reference docs which endpoint needs to be accessed and what all has to be sent. I have some info that the endpoint might be related to the barcodes but I'm not sure.

    This psudo-code successfully prints the attendee list:

    import requests
    import json

    url = "https://www.eventbriteapi.com/v3/events/{EVENT_ID}/attendees/?token={TOKEN}"

    response = requests.get(url)
    if response.status_code == 200:
    data = response.json()
    for attendee in data['attendees']:
    print("######################")
    profile = attendee['profile']
    print(profile)
    else:
    print(f"Error: {response.status_code}")
    print(response.text)


    Another part of the receied JSON data looks like this:

    "barcodes": [
    {
    "status": "unused",
    "barcode": "--------------------------------",
    "created": "2025-03-19T16:49:30Z",
    "changed": "2025-03-19T16:49:30Z",
    "checkin_type": 0,
    "is_printed": false
    }
    ],
    "answers": [],
    "checked_in": false,


    I'm hoping someone knows the right incantation to use Python requests .put() or .post() to change that "checked_in" value on their server to "true".

    Thanks in advance for anything. .

    Continue reading...

Compartilhe esta Página