I'm trying to make a simple call to retrieve user events on github through octokit.
According to the docs I create new client and visit the user events endpoint.
client = Octokit::Client.new(access_token: my_token)
user = client.user
Up to here it works fine, now I continue with
events = user.events
=> nil
Alternatively, when I do
client = Octokit::Client.new(access_token: my_token, api_endpoint: 'users/:user/events')
I get
#<Octokit::Client:0x007f9a78ac04f8...
but how to get list of events from there? Here is the official doc https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user
events = client.user_events(user.login)
– Molten