Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description and Summary are the same #58

Open
emilrueh opened this issue Jun 18, 2023 · 0 comments
Open

Description and Summary are the same #58

emilrueh opened this issue Jun 18, 2023 · 0 comments

Comments

@emilrueh
Copy link

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"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant