eventbrite-sdk-python icon indicating copy to clipboard operation
eventbrite-sdk-python copied to clipboard

Description and Summary are the same

Open emilrueh opened this issue 2 years ago • 0 comments

The summary returned by the event data via event id shows up twice in the data. It also takes place of the description therefore not providing a huge amount of event data to the user of the API and SDK.

Here is a script showcasing the bug:

from eventbrite import Eventbrite


def create_eventbrite_object(private_token):
    return Eventbrite(oauth_token=private_token)


def get_event_data(eventbrite, event_id):
    try:
        event = eventbrite.get_event(event_id)
        return event
    except Exception as e:
        print(
            f"Could not get event data for event_id: {event_id}, due to exception: {e}"
        )
        return None


eventbrite = create_eventbrite_object("YOUR_PRIVATE_TOKEN")  # add your eb private token

event_id = 000000000000  # add any event id

event_data = get_event_data(eventbrite, event_id)

print(event_data["description"]["text"])
print(event_data["summary"])

emilrueh avatar Jun 18 '23 11:06 emilrueh