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

owned_events property undefined on user object

Open nicolauria opened this issue 4 years ago • 1 comments

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)

nicolauria avatar Nov 07 '20 01:11 nicolauria

If you know the organization id for the user, then this appears to work with the current code:

EventbriteSDK::Organization.new(id: '...').events.retrieve

ldodds avatar Feb 15 '21 11:02 ldodds