Module: Freefeed::V2::Timelines
- Includes:
- Utils
- Included in:
- Client
- Defined in:
- lib/freefeed/v2/timelines.rb
Instance Method Summary
collapse
Methods included from Utils
#authenticated_request, #request
Instance Method Details
#best_of ⇒ Object
10
11
12
|
# File 'lib/freefeed/v2/timelines.rb', line 10
def best_of
authenticated_request(:get, "/v2/bestof")
end
|
26
27
28
|
# File 'lib/freefeed/v2/timelines.rb', line 26
def (username, offset: 0)
request_timeline("#{username}/comments", offset)
end
|
#everything ⇒ Object
14
15
16
|
# File 'lib/freefeed/v2/timelines.rb', line 14
def everything
request(:get, "/v2/everything")
end
|
#likes_timeline(username, offset: 0) ⇒ Object
30
31
32
|
# File 'lib/freefeed/v2/timelines.rb', line 30
def likes_timeline(username, offset: 0)
request_timeline("#{username}/likes", offset)
end
|
#own_timeline(filter: nil, offset: 0) ⇒ Object
18
19
20
|
# File 'lib/freefeed/v2/timelines.rb', line 18
def own_timeline(filter: nil, offset: 0)
request_timeline(filter ? "filter/#{filter}" : "home", offset)
end
|
#timeline(username, offset: 0) ⇒ Object
22
23
24
|
# File 'lib/freefeed/v2/timelines.rb', line 22
def timeline(username, offset: 0)
request_timeline(username, offset)
end
|