Module: Octokit::Client::Timelines

Included in:
Octokit::Client
Defined in:
lib/octokit/client/timelines.rb

Instance Method Summary collapse

Instance Method Details

#timeline(options = {}) ⇒ Object



5
6
7
8
# File 'lib/octokit/client/timelines.rb', line 5

def timeline(options={})
  path = "https://github.com/timeline.json"
  get(path, options, false, false, false)
end

#user_timeline(username = login, options = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/octokit/client/timelines.rb', line 10

def user_timeline(username=, options={})
  if token
    path = "https://github.com/#{username}.private.json"
    options[:token] = token
  else
    path = "https://github.com/#{username}.json"
  end
  get(path, options, false, false, false)
end