totter 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/totter/client/timelines.rb +17 -0
- data/lib/totter/version.rb +1 -1
- metadata +5 -2
@@ -88,6 +88,23 @@ module Totter
|
|
88
88
|
def user_timeline(user_id, options = DEFAULT_TIMELINE_OPTIONS)
|
89
89
|
get "users/#{user_id}/timelines/user", options
|
90
90
|
end
|
91
|
+
|
92
|
+
# Get the friends timeline (also known as "feed" or "home") for a given user.
|
93
|
+
# Note, you must use the user ID that belongs to the access token as the `user_id` parameter.
|
94
|
+
#
|
95
|
+
# Requires authenticatied client.
|
96
|
+
#
|
97
|
+
# @param user_id [Fixnum] The user ID for the timeline you are trying to view.
|
98
|
+
# @param options [Hash] Parameters for returning selected items
|
99
|
+
# @option options [Numeric] :limit Number of items to return. Default is 20
|
100
|
+
# @option options [String] :since A user_id/decision_id pair in the format '1,15' when paging forward
|
101
|
+
# @option options [String] :until A user_id/decision_id pair in the format '1,15' when paging backwards
|
102
|
+
# @return [Array] An array of `Hashie::Mash` objects representing decisions
|
103
|
+
# @example
|
104
|
+
# Seesaw.friends_timeline(4, limit: 20, since: '1,15')
|
105
|
+
def friends_timeline(user_id, options = DEFAULT_TIMELINE_OPTIONS)
|
106
|
+
get "users/#{user_id}/timelines/friends", options
|
107
|
+
end
|
91
108
|
end
|
92
109
|
end
|
93
110
|
end
|
data/lib/totter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: totter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -138,6 +138,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- - ! '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
hash: -1018930971706952464
|
141
144
|
requirements: []
|
142
145
|
rubyforge_project:
|
143
146
|
rubygems_version: 1.8.23
|