eventbrite-sdk-ruby
eventbrite-sdk-ruby copied to clipboard
owned_events property undefined on user object
I am building a rails application using the 'eventbrite_sdk' gem. I am able to retrieve my user account but the owned_events property is not available on the user object as shown in the documentation. This is what my user object looks like:
#<EventbriteSDK::User: {
"name": "Nico Lauria",
"first_name": "Nico",
"last_name": "Lauria",
"emails": [
{
"email": "[email protected]",
"verified": false,
"primary": true
}
],
"image_id": null,
"id": "USERID",
"is_public": false
}>
I also tried the following and owned_events was again undefined:
events = EventbriteSDK::User.me.owned_events.page(1, api_token: YOUR_REQUEST_TOKEN)
If you know the organization id for the user, then this appears to work with the current code:
EventbriteSDK::Organization.new(id: '...').events.retrieve