totter 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Totter
2
2
  # Verion of the Totter gem
3
- VERSION = '0.2.7'
3
+ VERSION = '0.2.8'
4
4
  end
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.7
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-07 00:00:00.000000000 Z
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