instagram 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -79,6 +79,11 @@ API Usage Examples
79
79
  # Get a list of a user's most recent media
80
80
  puts Instagram.user_recent_media(777)
81
81
 
82
+ # Use pagination data from a response to get the next page
83
+ page_1 = Instagram.user_recent_media(777)
84
+ page_2_max_id = page_1.pagination.next_max_id
85
+ page_2 = Instagram.user_recent_media(777, :max_id => page_2_max_id ) unless page_2_max_id.nil?
86
+
82
87
  # Get the currently authenticated user's media feed
83
88
  puts Instagram.user_media_feed
84
89
 
@@ -2,6 +2,7 @@ require File.expand_path('../instagram/error', __FILE__)
2
2
  require File.expand_path('../instagram/configuration', __FILE__)
3
3
  require File.expand_path('../instagram/api', __FILE__)
4
4
  require File.expand_path('../instagram/client', __FILE__)
5
+ require File.expand_path('../instagram/response', __FILE__)
5
6
 
6
7
  module Instagram
7
8
  extend Configuration
@@ -23,4 +24,4 @@ module Instagram
23
24
  def self.respond_to?(method)
24
25
  return client.respond_to?(method) || super
25
26
  end
26
- end
27
+ end
@@ -6,7 +6,7 @@ module Instagram
6
6
  #
7
7
  # @overload media_comments(id)
8
8
  # @param id [Integer] An Instagram media item ID
9
- # @return [Hashie::Mash] The requested comment.
9
+ # @return [Hashie::Mash] The requested comments.
10
10
  # @example Returns a list of comments for the media item of ID 1234
11
11
  # Instagram.media_comments(777)
12
12
  # @format :json
@@ -17,7 +17,7 @@ module Instagram
17
17
  # @see TODO:docs url
18
18
  def media_comments(id, *args)
19
19
  response = get("media/#{id}/comments")
20
- response["data"]
20
+ response
21
21
  end
22
22
 
23
23
  # Creates a comment for a given media item ID
@@ -36,7 +36,7 @@ module Instagram
36
36
  # @see TODO:docs url
37
37
  def create_media_comment(id, text, options={})
38
38
  response = post("media/#{id}/comments", options.merge(:text => text))
39
- response["data"]
39
+ response
40
40
  end
41
41
 
42
42
  # Deletes a comment for a given media item ID
@@ -55,7 +55,7 @@ module Instagram
55
55
  # @see TODO:docs url
56
56
  def delete_media_comment(media_id, comment_id, options={})
57
57
  response = delete("media/#{media_id}/comments/#{comment_id}", options)
58
- response["data"]
58
+ response
59
59
  end
60
60
  end
61
61
  end
@@ -22,8 +22,8 @@ module Instagram
22
22
  def geography_recent_media(id, *args)
23
23
  options = args.last.is_a?(Hash) ? args.pop : {}
24
24
  response = get("geographies/#{id}/media/recent", options)
25
- response["data"]
25
+ response
26
26
  end
27
27
  end
28
28
  end
29
- end
29
+ end
@@ -17,14 +17,14 @@ module Instagram
17
17
  # @see TODO:docs url
18
18
  def media_likes(id, *args)
19
19
  response = get("media/#{id}/likes")
20
- response["data"]
20
+ response
21
21
  end
22
22
 
23
23
  # Issues a like by the currently authenticated user, for a given media item ID
24
24
  #
25
25
  # @overload like_media(id, text)
26
26
  # @param id [Integer] An Instagram media item ID
27
- # @return [nil]
27
+ # @return [Hashie::Mash] Metadata
28
28
  # @example Like media item with ID 777
29
29
  # Instagram.like_media(777)
30
30
  # @format :json
@@ -35,14 +35,14 @@ module Instagram
35
35
  # @see TODO:docs url
36
36
  def like_media(id, options={})
37
37
  response = post("media/#{id}/likes", options)
38
- response["data"]
38
+ response
39
39
  end
40
40
 
41
41
  # Removes the like on a givem media item ID for the currently authenticated user
42
42
  #
43
43
  # @overload unlike_media(id)
44
44
  # @param media_id [Integer] An Instagram media item ID.
45
- # @return [nil]
45
+ # @return [Hashie::Mash] Metadata
46
46
  # @example Remove the like for the currently authenticated user on the media item with the ID of 777
47
47
  # Instagram.unlike_media(777)
48
48
  # @format :json
@@ -51,7 +51,7 @@ module Instagram
51
51
  # @see TODO:docs url
52
52
  def unlike_media(id, options={})
53
53
  response = delete("media/#{id}/likes", options)
54
- response["data"]
54
+ response
55
55
  end
56
56
  end
57
57
  end
@@ -15,7 +15,7 @@ module Instagram
15
15
  # @see TODO:docs url
16
16
  def location(id, *args)
17
17
  response = get("locations/#{id}")
18
- response["data"]
18
+ response
19
19
  end
20
20
 
21
21
  # Returns a list of recent media items for a given Instagram location
@@ -45,7 +45,7 @@ module Instagram
45
45
  # @param lat [String] A given latitude in decimal format
46
46
  # @param lng [String] A given longitude in decimal format
47
47
  # @option options [Integer] :count The number of media items to retrieve.
48
- # @return [Array]
48
+ # @return [Hashie::Mash] location resultm object, #data is an Array.
49
49
  # @example 1: Return a location with the Foursquare Venue ID = ()
50
50
  # Instagram.location_search("3fd66200f964a520c5f11ee3") (Schiller's Liquor Bar, 131 Rivington St., NY, NY 10002)
51
51
  # @example 2: Return locations around 37.7808851, -122.3948632 (164 S Park, SF, CA USA)
@@ -64,7 +64,7 @@ module Instagram
64
64
  lat, lng = args
65
65
  response = get('locations/search', options.merge(:lat => lat, :lng => lng))
66
66
  end
67
- response["data"]
67
+ response
68
68
  end
69
69
  end
70
70
  end
@@ -18,7 +18,7 @@ module Instagram
18
18
  def media_item(*args)
19
19
  id = args.first || 'self'
20
20
  response = get("media/#{id}")
21
- response["data"]
21
+ response
22
22
  end
23
23
 
24
24
  # Returns a list of the overall most popular media
@@ -38,7 +38,7 @@ module Instagram
38
38
  options = args.last.is_a?(Hash) ? args.pop : {}
39
39
  id = args.first || "self"
40
40
  response = get("media/popular", options)
41
- response["data"]
41
+ response
42
42
  end
43
43
 
44
44
  # Returns media items within proximity of given lat,lng
@@ -47,7 +47,7 @@ module Instagram
47
47
  # @param lng [String] A given longitude in decimal format
48
48
  # @param options [Hash] A customizable set of options.
49
49
  # @option options [Integer] :count The number of media items to retrieve.
50
- # @return [Array]
50
+ # @return [Hashie::Mash] A list of matching media
51
51
  # @example Return media around 37.7808851, -122.3948632 (164 S Park, SF, CA USA)
52
52
  # Instagram.media_search("37.7808851", "-122.3948632")
53
53
  # @see TODO:doc url
@@ -19,7 +19,7 @@ module Instagram
19
19
  # @see https://api.instagram.com/developer/realtime/
20
20
  def subscriptions(options={})
21
21
  response = get("subscriptions", options.merge(:client_secret => client_secret))
22
- response["data"]
22
+ response
23
23
  end
24
24
 
25
25
  # Creates a real-time subscription
@@ -64,7 +64,7 @@ module Instagram
64
64
  o[:aspect] = aspect || o[:aspect] || "media"
65
65
  }
66
66
  response = post("subscriptions", options.merge(:client_secret => client_secret))
67
- response["data"]
67
+ response
68
68
  end
69
69
 
70
70
  # Deletes a real-time subscription
@@ -79,7 +79,7 @@ module Instagram
79
79
  # @param options [Hash] Addition options and parameters
80
80
  # @option options [String] :object When specified will remove all subscriptions of this object type, unless an :object_id is also specified (user, tag, location or geography)
81
81
  # @option options [String, Integer] :object_id When specifying :object, inlcude an :object_id to only remove subscriptions of that object and object_id
82
- # @return [nil]
82
+ # @return [Hashie::Mash]
83
83
  # @example Deletes an application's user change subscription
84
84
  # Instagram.delete_subscription(:object => "user")
85
85
  # @format :json
@@ -93,7 +93,7 @@ module Instagram
93
93
  subscription_id = args.first
94
94
  options.merge!(:id => subscription_id) if subscription_id
95
95
  response = delete("subscriptions", options.merge(:client_secret => client_secret))
96
- response["data"]
96
+ response
97
97
  end
98
98
 
99
99
  # Process a subscription notification JSON payload
@@ -15,7 +15,7 @@ module Instagram
15
15
  # @see TODO:docs url
16
16
  def tag(tag, *args)
17
17
  response = get("tags/#{tag}")
18
- response["data"]
18
+ response
19
19
  end
20
20
 
21
21
  # Returns a list of recent media items for a given Instagram tag
@@ -46,13 +46,13 @@ module Instagram
46
46
  # @param query [String] The beginning or complete tag name to search for
47
47
  # @param options [Hash] A customizable set of options.
48
48
  # @option options [Integer] :count The number of media items to retrieve.
49
- # @return [Array]
49
+ # @return [Hashie::Mash]
50
50
  # @see TODO:doc url
51
51
  # @example Return tags that start with "cat"
52
52
  # Instagram.tag_search("cat")
53
53
  def tag_search(query, options={})
54
54
  response = get('tags/search', options.merge(:q => query))
55
- response["data"]
55
+ response
56
56
  end
57
57
  end
58
58
  end
@@ -18,7 +18,7 @@ module Instagram
18
18
  def user(*args)
19
19
  id = args.first || 'self'
20
20
  response = get("users/#{id}")
21
- response["data"]
21
+ response
22
22
  end
23
23
 
24
24
  # Returns users that match the given query
@@ -29,13 +29,13 @@ module Instagram
29
29
  # @param query [String] The search query to run against user search.
30
30
  # @param options [Hash] A customizable set of options.
31
31
  # @option options [Integer] :count The number of users to retrieve.
32
- # @return [Array]
32
+ # @return [Hashie::Mash]
33
33
  # @see TODO:doc url
34
34
  # @example Return users that match "Shayne Sweeney"
35
35
  # Instagram.user_search("Shayne Sweeney")
36
36
  def user_search(query, options={})
37
37
  response = get('users/search', options.merge(:q => query))
38
- response["data"]
38
+ response
39
39
  end
40
40
 
41
41
  # Returns a list of users whom a given user follows
@@ -63,7 +63,7 @@ module Instagram
63
63
  options = args.last.is_a?(Hash) ? args.pop : {}
64
64
  id = args.first || "self"
65
65
  response = get("users/#{id}/follows", options)
66
- response["data"]
66
+ response
67
67
  end
68
68
  end
69
69
 
@@ -92,7 +92,7 @@ module Instagram
92
92
  options = args.last.is_a?(Hash) ? args.pop : {}
93
93
  id = args.first || "self"
94
94
  response = get("users/#{id}/followed-by", options)
95
- response["data"]
95
+ response
96
96
  end
97
97
 
98
98
  # Returns a list of users whom a given user is followed by
@@ -112,7 +112,7 @@ module Instagram
112
112
  # @rate_limited true
113
113
  def user_requested_by()
114
114
  response = get("users/self/requested-by")
115
- response["data"]
115
+ response
116
116
  end
117
117
 
118
118
  # Returns most recent media items from the currently authorized user's feed.
@@ -122,7 +122,7 @@ module Instagram
122
122
  # @option options [Integer] :max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
123
123
  # @option options [Integer] :min_id Return media later than this min_id
124
124
  # @option options [Integer] :count Specifies the number of records to retrieve, per page.
125
- # @return [Array]
125
+ # @return [Hashie::Mash]
126
126
  # @example Return most recent media images that would appear on @shayne's feed
127
127
  # Instagram.user_media_feed() # assuming @shayne is the authorized user
128
128
  # @format :json
@@ -160,7 +160,7 @@ module Instagram
160
160
  options = args.last.is_a?(Hash) ? args.pop : {}
161
161
  id = args.first || "self"
162
162
  response = get("users/#{id}/media/recent", options)
163
- response["data"]
163
+ response
164
164
  end
165
165
 
166
166
  # Returns a list of media items liked by the current user
@@ -195,7 +195,7 @@ module Instagram
195
195
  # @rate_limited true
196
196
  def user_relationship(id, options={})
197
197
  response = get("users/#{id}/relationship", options)
198
- response["data"]
198
+ response
199
199
  end
200
200
 
201
201
  # Create a follows relationship between the current user and the target user
@@ -213,7 +213,7 @@ module Instagram
213
213
  def follow_user(id, options={})
214
214
  options["action"] = "follow"
215
215
  response = post("users/#{id}/relationship", options)
216
- response["data"]
216
+ response
217
217
  end
218
218
 
219
219
  # Destroy a follows relationship between the current user and the target user
@@ -231,7 +231,7 @@ module Instagram
231
231
  def unfollow_user(id, options={})
232
232
  options["action"] = "unfollow"
233
233
  response = post("users/#{id}/relationship", options)
234
- response["data"]
234
+ response
235
235
  end
236
236
 
237
237
  # Block a relationship between the current user and the target user
@@ -249,7 +249,7 @@ module Instagram
249
249
  def block_user(id, options={})
250
250
  options["action"] = "block"
251
251
  response = post("users/#{id}/relationship", options)
252
- response["data"]
252
+ response
253
253
  end
254
254
 
255
255
  # Remove a relationship block between the current user and the target user
@@ -267,7 +267,7 @@ module Instagram
267
267
  def unblock_user(id, options={})
268
268
  options["action"] = "unblock"
269
269
  response = post("users/#{id}/relationship", options)
270
- response["data"]
270
+ response
271
271
  end
272
272
 
273
273
  # Approve a relationship request between the current user and the target user
@@ -285,7 +285,7 @@ module Instagram
285
285
  def approve_user(id, options={})
286
286
  options["action"] = "approve"
287
287
  response = post("users/#{id}/relationship", options)
288
- response["data"]
288
+ response
289
289
  end
290
290
 
291
291
  # Deny a relationship request between the current user and the target user
@@ -303,7 +303,7 @@ module Instagram
303
303
  def deny_user(id, options={})
304
304
  options["action"] = "deny"
305
305
  response = post("users/#{id}/relationship", options)
306
- response["data"]
306
+ response
307
307
  end
308
308
  end
309
309
  end
@@ -12,7 +12,7 @@ module Instagram
12
12
  def get_access_token(code, options={})
13
13
  options[:grant_type] ||= "authorization_code"
14
14
  params = access_token_params.merge(options)
15
- post("/oauth/access_token/", params.merge(:code => code), raw=false, unformatted=true)
15
+ post("/oauth/access_token/", params.merge(:code => code), raw=false, unformatted=true, no_response_wrapper=true)
16
16
  end
17
17
 
18
18
  private
@@ -2,29 +2,29 @@ module Instagram
2
2
  # Defines HTTP request methods
3
3
  module Request
4
4
  # Perform an HTTP GET request
5
- def get(path, options={}, raw=false, unformatted=false)
6
- request(:get, path, options, raw, unformatted)
5
+ def get(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
6
+ request(:get, path, options, raw, unformatted, no_response_wrapper)
7
7
  end
8
8
 
9
9
  # Perform an HTTP POST request
10
- def post(path, options={}, raw=false, unformatted=false)
11
- request(:post, path, options, raw, unformatted)
10
+ def post(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
11
+ request(:post, path, options, raw, unformatted, no_response_wrapper)
12
12
  end
13
13
 
14
14
  # Perform an HTTP PUT request
15
- def put(path, options={}, raw=false, unformatted=false)
16
- request(:put, path, options, raw, unformatted)
15
+ def put(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
16
+ request(:put, path, options, raw, unformatted, no_response_wrapper)
17
17
  end
18
18
 
19
19
  # Perform an HTTP DELETE request
20
- def delete(path, options={}, raw=false, unformatted=false)
21
- request(:delete, path, options, raw, unformatted)
20
+ def delete(path, options={}, raw=false, unformatted=false, no_response_wrapper=false)
21
+ request(:delete, path, options, raw, unformatted, no_response_wrapper)
22
22
  end
23
23
 
24
24
  private
25
25
 
26
26
  # Perform an HTTP request
27
- def request(method, path, options, raw=false, unformatted=false)
27
+ def request(method, path, options, raw=false, unformatted=false, no_response_wrapper=false)
28
28
  response = connection(raw).send(method) do |request|
29
29
  path = formatted_path(path) unless unformatted
30
30
  case method
@@ -35,7 +35,9 @@ module Instagram
35
35
  request.body = options unless options.empty?
36
36
  end
37
37
  end
38
- raw ? response : response.body
38
+ return response if raw
39
+ return response.body if no_response_wrapper
40
+ return Response.create( response.body )
39
41
  end
40
42
 
41
43
  def formatted_path(path)
@@ -0,0 +1,16 @@
1
+ module Instagram
2
+ module Response
3
+ def self.create( response_hash )
4
+ data = response_hash.data.dup rescue response_hash
5
+ data.extend( self )
6
+ data.instance_exec do
7
+ @pagination = response_hash.pagination
8
+ @meta = response_hash.meta
9
+ end
10
+ data
11
+ end
12
+
13
+ attr_reader :pagination
14
+ attr_reader :meta
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Instagram
2
- VERSION = '0.9.0'.freeze unless defined?(::Instagram::VERSION)
2
+ VERSION = '0.9.1'.freeze unless defined?(::Instagram::VERSION)
3
3
  end
@@ -1 +1 @@
1
- {"pagination": {"next": "http://api_privatebeta.instagr.am/api/v2/users/self/feed?access_token=f59def8.001cde77128843169627c0308237bafa&max_id=22063131"}, "meta": {"code": 200}, "data": [{"type": 1, "comments": [{"created_time": "2011-02-01T02:09:14+0000", "message": "New SG Mel #SuicideGirls ", "from": {"username": "suicidegirls", "full_name": "SuicideGirls ", "type": "user", "id": 1186880}, "id": 25785204}, {"created_time": "2011-02-01T02:12:13+0000", "message": "So pretty! ", "from": {"username": "steeviepeeto", "full_name": "Kimberly Urdahl", "type": "user", "id": 430377}, "id": 25786134}, {"created_time": "2011-02-01T02:12:34+0000", "message": "Lovely !", "from": {"username": "rmrnyc", "full_name": "RoseMarie Reyes", "type": "user", "id": 1558505}, "id": 25786246}, {"created_time": "2011-02-01T02:12:50+0000", "message": "Uau! Nice shot! Pretty woman!", "from": {"username": "wallaceskt", "full_name": "Wallace Oliveira", "type": "user", "id": 52931}, "id": 25786340}, {"created_time": "2011-02-01T02:21:23+0000", "message": "Snap", "from": {"username": "stdamz", "full_name": "Damien Thz ", "type": "user", "id": 382577}, "id": 25789175}, {"created_time": "2011-02-01T02:21:49+0000", "message": "Gorgeous", "from": {"username": "melohmel", "full_name": "Mel W ", "type": "user", "id": 883057}, "id": 25789315}], "caption": {"created_time": "2011-02-01T02:09:14+0000", "message": "New SG Mel #SuicideGirls ", "from": {"username": "suicidegirls", "full_name": "SuicideGirls ", "type": "user", "id": 1186880}, "id": 25785204}, "like_count": 46, "link": "http://api_privatebeta.instagr.am/p/BUkzt/", "user": {"username": "suicidegirls", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1186880_75sq_1295581034.jpg", "id": 1186880}, "created_time": "2011-02-01T02:08:57+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22170861, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T01:42:20+0000", "message": "Oysters, they are may be available", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25776639}], "caption": {"created_time": "2011-02-01T01:42:20+0000", "message": "Oysters, they are may be available", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25776639}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUjeW/", "user": {"username": "justinmarshall", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_696557_75sq_1293145608.jpg", "id": 696557}, "created_time": "2011-02-01T01:41:35+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22165398, "location": {"latitude": 39.729934999999998, "longitude": -121.8410372, "id": 218339, "street_address": "132 W 2nd St", "name": "The Banshee"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T01:02:05+0000", "message": "@RBMA Radio On The Floor", "from": {"username": "redbull", "full_name": "Red Bull ", "type": "user", "id": 476322}, "id": 25763689}, {"created_time": "2011-02-01T02:22:39+0000", "message": "Redbull Rocks", "from": {"username": "isralab", "full_name": " ", "type": "user", "id": 956389}, "id": 25789588}], "caption": {"created_time": "2011-02-01T01:02:05+0000", "message": "@RBMA Radio On The Floor", "from": {"username": "redbull", "full_name": "Red Bull ", "type": "user", "id": 476322}, "id": 25763689}, "like_count": 21, "link": "http://api_privatebeta.instagr.am/p/BUhck/", "user": {"username": "redbull", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_476322_75sq_1288938542.jpg", "id": 476322}, "created_time": "2011-02-01T01:00:54+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22157092, "location": {"latitude": 29.956858, "longitude": -90.070908000000003, "id": 553720, "street_address": "1018 Bienville St", "name": "Traffic Boutique"}}, {"type": 1, "comments": [], "caption": null, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUg-1/", "user": {"username": "ellbie", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_71612_75sq_1291676961.jpg", "id": 71612}, "created_time": "2011-02-01T00:51:22+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22155189, "location": {"latitude": 37.791523701325012, "longitude": -122.4276065826416, "id": 4158, "street_address": "2000 Sacramento St", "name": "Lafayette Square Park"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:49:52+0000", "message": "In all my life…", "from": {"username": "acordova", "full_name": "Alexis Cordova", "type": "user", "id": 6875}, "id": 25759549}], "caption": {"created_time": "2011-02-01T00:49:52+0000", "message": "In all my life…", "from": {"username": "acordova", "full_name": "Alexis Cordova", "type": "user", "id": 6875}, "id": 25759549}, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BUg6V/", "user": {"username": "acordova", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_6875_75sq_1293927240.jpg", "id": 6875}, "created_time": "2011-02-01T00:49:49+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22154901, "location": {"latitude": 37.734432499999997, "longitude": -122.4339834, "id": 1181335, "street_address": "701 Chenery St", "name": "Glen Park Cleaners"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:37:03+0000", "message": "Ann Curry at the NBC Nightly News Desk while Brian Williams anchors from Cairo, Egypt.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25755302}, {"created_time": "2011-02-01T00:41:49+0000", "message": "If she has an iPhone, you should get her on IG She's good at twitter", "from": {"username": "tigerbeat", "full_name": "Steve Rhodes", "type": "user", "id": 11687}, "id": 25756880}, {"created_time": "2011-02-01T00:49:23+0000", "message": "I'm from England and have no idea who she is but 'Go Ann Curry!' all the same! :D", "from": {"username": "calumgray1", "full_name": "Calum Gray", "type": "user", "id": 392158}, "id": 25759396}, {"created_time": "2011-02-01T01:01:26+0000", "message": "Great shot. Love Ann Curry.", "from": {"username": "michelelewis", "full_name": "Michele Lewis", "type": "user", "id": 1579323}, "id": 25763475}, {"created_time": "2011-02-01T01:02:17+0000", "message": "Love Ann Curry!", "from": {"username": "nubianp", "full_name": "Phyllis Bradley", "type": "user", "id": 170540}, "id": 25763755}, {"created_time": "2011-02-01T01:16:20+0000", "message": "Awesome! Love her:)", "from": {"username": "cameragirl5d", "full_name": " ", "type": "user", "id": 1034490}, "id": 25768286}, {"created_time": "2011-02-01T01:45:01+0000", "message": "Thank you all for the likes and great comments.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25777448}], "caption": {"created_time": "2011-02-01T00:37:03+0000", "message": "Ann Curry at the NBC Nightly News Desk while Brian Williams anchors from Cairo, Egypt.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25755302}, "like_count": 36, "link": "http://api_privatebeta.instagr.am/p/BUgOX/", "user": {"username": "nbcnews", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1269598_75sq_1294082789.jpg", "id": 1269598}, "created_time": "2011-02-01T00:35:59+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22152087, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:25:01+0000", "message": "Venezia", "from": {"username": "nnowell", "full_name": "Nicholas Nowell", "type": "user", "id": 965618}, "id": 25751522}], "caption": {"created_time": "2011-02-01T00:25:01+0000", "message": "Venezia", "from": {"username": "nnowell", "full_name": "Nicholas Nowell", "type": "user", "id": 965618}, "id": 25751522}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUfr3/", "user": {"username": "nnowell", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_965618_75sq_1294506500.jpg", "id": 965618}, "created_time": "2011-02-01T00:24:59+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22149879, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:22:22+0000", "message": "How many GRAMMY winners can you identify?", "from": {"username": "thegrammys", "full_name": "The GRAMMYs ", "type": "user", "id": 1352742}, "id": 25750661}], "caption": {"created_time": "2011-02-01T00:22:22+0000", "message": "How many GRAMMY winners can you identify?", "from": {"username": "thegrammys", "full_name": "The GRAMMYs ", "type": "user", "id": 1352742}, "id": 25750661}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BUfie/", "user": {"username": "thegrammys", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1352742_75sq_1294269333.jpg", "id": 1352742}, "created_time": "2011-02-01T00:22:15+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22149278, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:19:56+0000", "message": "Ear Inn", "from": {"username": "laughingsquid", "full_name": "Scott Beale", "type": "user", "id": 78}, "id": 25749870}, {"created_time": "2011-02-01T00:43:26+0000", "message": "BAR", "from": {"username": "prettydreamy", "full_name": "becky a", "type": "user", "id": 236041}, "id": 25757430}, {"created_time": "2011-02-01T00:51:25+0000", "message": "Right around the corner from my work!!!! Next time ping me. Dig the poster in the far left corner that shows the medical effects of alcohol on the body over time ... And the diving helmet with inches of dust on it. :-)", "from": {"username": "skimen", "full_name": "Shel ", "type": "user", "id": 797880}, "id": 25760087}, {"created_time": "2011-02-01T01:05:54+0000", "message": "Lol", "from": {"username": "chuyyei", "full_name": "Chuy Hdz", "type": "user", "id": 96666}, "id": 25764870}], "caption": {"created_time": "2011-02-01T00:19:56+0000", "message": "Ear Inn", "from": {"username": "laughingsquid", "full_name": "Scott Beale", "type": "user", "id": 78}, "id": 25749870}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BUfab/", "user": {"username": "laughingsquid", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_78_75sq_1284668609.jpg", "id": 78}, "created_time": "2011-02-01T00:19:54+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22148763, "location": {"latitude": 40.7258, "longitude": -74.009500000000003, "id": 512606, "street_address": "326 Spring St", "name": "Ear Inn"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T22:59:01+0000", "message": "hanging with @Jyri ", "from": {"username": "om", "full_name": "om malik", "type": "user", "id": 2637}, "id": 25720871}, {"created_time": "2011-02-01T01:39:34+0000", "message": "Say hi to Jyri!", "from": {"username": "loiclemeur", "full_name": " ", "type": "user", "id": 873467}, "id": 25775778}], "caption": {"created_time": "2011-01-31T22:59:01+0000", "message": "hanging with @Jyri ", "from": {"username": "om", "full_name": "om malik", "type": "user", "id": 2637}, "id": 25720871}, "like_count": 2, "link": "http://api_privatebeta.instagr.am/p/BUbbv/", "user": {"username": "om", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_2637_75sq_1286977009.jpg", "id": 2637}, "created_time": "2011-01-31T22:58:49+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22132463, "location": {"latitude": 37.782400000000003, "longitude": -122.38800000000001, "id": 509, "street_address": "800 Embarcadero St", "name": "South Beach Cafe"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T22:26:33+0000", "message": "Nap time", "from": {"username": "crystaljohnstone", "full_name": " ", "type": "user", "id": 1106035}, "id": 25709784}], "caption": {"created_time": "2011-01-31T22:26:33+0000", "message": "Nap time", "from": {"username": "crystaljohnstone", "full_name": " ", "type": "user", "id": 1106035}, "id": 25709784}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUZ40/", "user": {"username": "crystaljohnstone", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1106035_75sq_1292963069.jpg", "id": 1106035}, "created_time": "2011-01-31T22:26:27+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22126132, "location": null}, {"type": 1, "comments": [], "caption": null, "like_count": 9, "link": "http://api_privatebeta.instagr.am/p/BUVx9/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T20:56:24+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22109309, "location": {"latitude": 21.362861200000001, "longitude": -157.9539494, "id": 235776, "street_address": "63 Cowpens Street", "name": "Battleship Missouri Memorial"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T23:41:03+0000", "message": "Bummed this was closed when I last went to Hawaii", "from": {"username": "luomen", "full_name": "Ken Chu", "type": "user", "id": 592480}, "id": 25736141}], "caption": null, "like_count": 21, "link": "http://api_privatebeta.instagr.am/p/BUVmG/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T20:51:48+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22108550, "location": {"latitude": 21.362861200000001, "longitude": -157.9539494, "id": 235776, "street_address": "63 Cowpens Street", "name": "Battleship Missouri Memorial"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T20:13:50+0000", "message": "After a week on the east coast I need to have Mexican food again", "from": {"username": "nolan", "full_name": "Nolan Brown", "type": "user", "id": 7358}, "id": 25670769}], "caption": {"created_time": "2011-01-31T20:13:50+0000", "message": "After a week on the east coast I need to have Mexican food again", "from": {"username": "nolan", "full_name": "Nolan Brown", "type": "user", "id": 7358}, "id": 25670769}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUT91/", "user": {"username": "nolan", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_7358_75sq_1292167370.jpg", "id": 7358}, "created_time": "2011-01-31T20:13:04+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22101877, "location": {"latitude": 37.777305400000003, "longitude": -122.39522030000001, "id": 372, "street_address": "683 4th St", "name": "the Iron Cactus"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T19:47:08+0000", "message": "@mikeyk pulls a shot on our Expobar / cc @stephen_vick (yes, I know we need demitasses)", "from": {"username": "josh", "full_name": "Josh Riedel", "type": "user", "id": 33}, "id": 25663923}, {"created_time": "2011-01-31T19:50:30+0000", "message": "That thing looks super complicated!", "from": {"username": "mtleese13", "full_name": "Mercedes ", "type": "user", "id": 1538989}, "id": 25664788}, {"created_time": "2011-01-31T20:09:00+0000", "message": "Wow!!! I want one in my kitchen and office!", "from": {"username": "swade77", "full_name": " ", "type": "user", "id": 749109}, "id": 25669509}, {"created_time": "2011-01-31T20:56:35+0000", "message": "Yes!", "from": {"username": "aron", "full_name": "Aron Hegyi", "type": "user", "id": 58}, "id": 25682766}], "caption": {"created_time": "2011-01-31T19:47:08+0000", "message": "@mikeyk pulls a shot on our Expobar / cc @stephen_vick (yes, I know we need demitasses)", "from": {"username": "josh", "full_name": "Josh Riedel", "type": "user", "id": 33}, "id": 25663923}, "like_count": 50, "link": "http://api_privatebeta.instagr.am/p/BUS3X/", "user": {"username": "josh", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_33_75sq_1291935187.jpg", "id": 33}, "created_time": "2011-01-31T19:45:55+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22097367, "location": {"latitude": 37.780885099999999, "longitude": -122.3948632, "id": 514276, "street_address": "164 south park", "name": "Instagram"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T19:44:37+0000", "message": "Zoey ", "from": {"username": "svanhout", "full_name": " ", "type": "user", "id": 1578415}, "id": 25663249}, {"created_time": "2011-02-01T00:56:09+0000", "message": "Great pic", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25761726}], "caption": {"created_time": "2011-01-31T19:44:37+0000", "message": "Zoey ", "from": {"username": "svanhout", "full_name": " ", "type": "user", "id": 1578415}, "id": 25663249}, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BUSrK/", "user": {"username": "svanhout", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1578415_75sq_1295492261.jpg", "id": 1578415}, "created_time": "2011-01-31T19:41:24+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22096586, "location": null}, {"type": 1, "comments": [{"created_time": "2011-01-31T18:02:57+0000", "message": "Officially signed up! Now to convince @chojennyik to run it with me (her 2nd time)", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25636189}, {"created_time": "2011-01-31T18:03:50+0000", "message": "Fez muito bem!!! Parabéns pela decisão!", "from": {"username": "marcia", "full_name": "Marcia Krieger", "type": "user", "id": 69}, "id": 25636423}, {"created_time": "2011-01-31T18:03:51+0000", "message": "Umm I'll cheer and take pics!", "from": {"username": "chojennyik", "full_name": "Jenny Cho", "type": "user", "id": 9468}, "id": 25636426}, {"created_time": "2011-01-31T18:04:23+0000", "message": "Cedar point after!!", "from": {"username": "chojennyik", "full_name": "Jenny Cho", "type": "user", "id": 9468}, "id": 25636571}, {"created_time": "2011-01-31T18:07:34+0000", "message": "Yess, roller coasters won't phase me after this haha @chojennyik", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25637418}, {"created_time": "2011-01-31T18:25:55+0000", "message": "Love :D", "from": {"username": "mookio", "full_name": "Mookio Chen", "type": "user", "id": 4761}, "id": 25642341}], "caption": {"created_time": "2011-01-31T18:02:57+0000", "message": "Officially signed up! Now to convince @chojennyik to run it with me (her 2nd time)", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25636189}, "like_count": 4, "link": "http://api_privatebeta.instagr.am/p/BUOmo/", "user": {"username": "stefkrieger", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_14_75sq_1290717659.jpg", "id": 14}, "created_time": "2011-01-31T18:01:53+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22079912, "location": null}, {"type": 1, "comments": [{"created_time": "2011-01-31T17:27:54+0000", "message": "@gigi22 @deidre817 @emikop the race is on", "from": {"username": "erinishuman", "full_name": "Erin Craig", "type": "user", "id": 3166}, "id": 25626431}, {"created_time": "2011-01-31T17:28:54+0000", "message": "@deidre817 :: red slug bug thanks erin!!!", "from": {"username": "emikop", "full_name": "Emiko  ", "type": "user", "id": 429483}, "id": 25626753}, {"created_time": "2011-01-31T17:33:25+0000", "message": "this beetle is great", "from": {"username": "protest", "full_name": "Slava Barinov", "type": "user", "id": 1279308}, "id": 25628148}, {"created_time": "2011-01-31T17:48:38+0000", "message": "I don't think I've seen an image as ripe for \"Pop-rocket\" as this one.", "from": {"username": "danapalooza", "full_name": "Daniel Markham", "type": "user", "id": 5334}, "id": 25632340}, {"created_time": "2011-01-31T17:49:37+0000", "message": "Love these bugs", "from": {"username": "noushinnouri", "full_name": "NoushinPhotography.com ", "type": "user", "id": 1377850}, "id": 25632627}, {"created_time": "2011-01-31T18:15:58+0000", "message": "Punch!!!!! ", "from": {"username": "love2snap", "full_name": "Jessica Anne", "type": "user", "id": 289485}, "id": 25639686}, {"created_time": "2011-01-31T18:26:56+0000", "message": "Very nice", "from": {"username": "mducatti", "full_name": "Mauro Ducatti", "type": "user", "id": 107949}, "id": 25642631}, {"created_time": "2011-01-31T18:37:00+0000", "message": "Ahhh I had a blue one", "from": {"username": "mgoblue", "full_name": "Chris P", "type": "user", "id": 47}, "id": 25645292}, {"created_time": "2011-01-31T19:13:07+0000", "message": "", "from": {"username": "anniebluesky", "full_name": "iphoneography  ", "type": "user", "id": 108834}, "id": 25655233}, {"created_time": "2011-01-31T21:07:09+0000", "message": "Like time travel.", "from": {"username": "ktchn", "full_name": "Katy Chan", "type": "user", "id": 1016630}, "id": 25685851}, {"created_time": "2011-01-31T23:12:33+0000", "message": "looks like my brother in-laws bug!", "from": {"username": "hboo", "full_name": "drewgar'sboo. ", "type": "user", "id": 377036}, "id": 25725543}, {"created_time": "2011-02-01T00:22:32+0000", "message": "@emikop I can't slug bug  @gigi22 she's not here anymore ", "from": {"username": "deidre817", "full_name": "Deidre Carvey", "type": "user", "id": 463663}, "id": 25750702}, {"created_time": "2011-02-01T00:23:05+0000", "message": "That's a sweet bug :)", "from": {"username": "deidre817", "full_name": "Deidre Carvey", "type": "user", "id": 463663}, "id": 25750881}, {"created_time": "2011-02-01T00:38:42+0000", "message": "Yeaaa", "from": {"username": "mrwhite", "full_name": "GoldDust  ", "type": "user", "id": 629279}, "id": 25755864}], "caption": null, "like_count": 153, "link": "http://api_privatebeta.instagr.am/p/BUNFi/", "user": {"username": "kevin", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_3_75sq_1295574122.jpg", "id": 3}, "created_time": "2011-01-31T17:26:41+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22073698, "location": {"latitude": 37.78246395814844, "longitude": -122.4078226089478, "id": 164, "street_address": "66 Mint Plaza", "name": "Blue Bottle Café"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T17:06:29+0000", "message": "Run home jack", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25619612}, {"created_time": "2011-01-31T17:57:15+0000", "message": "Headed home?", "from": {"username": "idluvto", "full_name": " ", "type": "user", "id": 1718709}, "id": 25634672}, {"created_time": "2011-01-31T18:19:49+0000", "message": "@idluvto .. Should be home by 3", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25640716}], "caption": {"created_time": "2011-01-31T17:06:29+0000", "message": "Run home jack", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25619612}, "like_count": 3, "link": "http://api_privatebeta.instagr.am/p/BUMLZ/", "user": {"username": "gabe_hawk", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_820738_75sq_1292035867.jpg", "id": 820738}, "created_time": "2011-01-31T17:06:26+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22069977, "location": {"latitude": 33.930381699999998, "longitude": -118.3685455, "id": 343419, "street_address": "Los Angeles, CA 90045", "name": "LAX Tarmac"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T16:53:03+0000", "message": "Good morning! ", "from": {"username": "dlprager", "full_name": "David Prager", "type": "user", "id": 143217}, "id": 25615335}, {"created_time": "2011-01-31T23:37:20+0000", "message": "Planning to be in that exact place in three weeks.", "from": {"username": "lizg", "full_name": "Liz Gannes", "type": "user", "id": 112}, "id": 25734720}], "caption": {"created_time": "2011-01-31T16:53:03+0000", "message": "Good morning! ", "from": {"username": "dlprager", "full_name": "David Prager", "type": "user", "id": 143217}, "id": 25615335}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BULiy/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T16:52:25+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22067378, "location": {"latitude": 21.337821999999999, "longitude": -157.69990300000001, "id": 260110, "street_address": "", "name": "Waimanalo Beach"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T16:32:22+0000", "message": "A little slice of heaven (Orval cheese)", "from": {"username": "doug", "full_name": "Doug Systrom", "type": "user", "id": 17}, "id": 25608572}], "caption": {"created_time": "2011-01-31T16:32:22+0000", "message": "A little slice of heaven (Orval cheese)", "from": {"username": "doug", "full_name": "Doug Systrom", "type": "user", "id": 17}, "id": 25608572}, "like_count": 13, "link": "http://api_privatebeta.instagr.am/p/BUKgb/", "user": {"username": "doug", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_17_75sq_1292890348.jpg", "id": 17}, "created_time": "2011-01-31T16:31:34+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22063131, "location": null}]}
1
+ {"pagination": {"next_url": "http://api.instagram.com/v1/users/self/feed?access_token=f59def8.001cde77128843169627c0308237bafa&max_id=22063131","next_max_id":"22063131"}, "meta": {"code": 200}, "data": [{"type": 1, "comments": [{"created_time": "2011-02-01T02:09:14+0000", "message": "New SG Mel #SuicideGirls ", "from": {"username": "suicidegirls", "full_name": "SuicideGirls ", "type": "user", "id": 1186880}, "id": 25785204}, {"created_time": "2011-02-01T02:12:13+0000", "message": "So pretty! ", "from": {"username": "steeviepeeto", "full_name": "Kimberly Urdahl", "type": "user", "id": 430377}, "id": 25786134}, {"created_time": "2011-02-01T02:12:34+0000", "message": "Lovely !", "from": {"username": "rmrnyc", "full_name": "RoseMarie Reyes", "type": "user", "id": 1558505}, "id": 25786246}, {"created_time": "2011-02-01T02:12:50+0000", "message": "Uau! Nice shot! Pretty woman!", "from": {"username": "wallaceskt", "full_name": "Wallace Oliveira", "type": "user", "id": 52931}, "id": 25786340}, {"created_time": "2011-02-01T02:21:23+0000", "message": "Snap", "from": {"username": "stdamz", "full_name": "Damien Thz ", "type": "user", "id": 382577}, "id": 25789175}, {"created_time": "2011-02-01T02:21:49+0000", "message": "Gorgeous", "from": {"username": "melohmel", "full_name": "Mel W ", "type": "user", "id": 883057}, "id": 25789315}], "caption": {"created_time": "2011-02-01T02:09:14+0000", "message": "New SG Mel #SuicideGirls ", "from": {"username": "suicidegirls", "full_name": "SuicideGirls ", "type": "user", "id": 1186880}, "id": 25785204}, "like_count": 46, "link": "http://api_privatebeta.instagr.am/p/BUkzt/", "user": {"username": "suicidegirls", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1186880_75sq_1295581034.jpg", "id": 1186880}, "created_time": "2011-02-01T02:08:57+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/21a3a6f598a84b40bbe0fc737f6ed7ba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22170861, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T01:42:20+0000", "message": "Oysters, they are may be available", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25776639}], "caption": {"created_time": "2011-02-01T01:42:20+0000", "message": "Oysters, they are may be available", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25776639}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUjeW/", "user": {"username": "justinmarshall", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_696557_75sq_1293145608.jpg", "id": 696557}, "created_time": "2011-02-01T01:41:35+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/0f8e832c3dc6420bb6ddf0bd09f032f6_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22165398, "location": {"latitude": 39.729934999999998, "longitude": -121.8410372, "id": 218339, "street_address": "132 W 2nd St", "name": "The Banshee"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T01:02:05+0000", "message": "@RBMA Radio On The Floor", "from": {"username": "redbull", "full_name": "Red Bull ", "type": "user", "id": 476322}, "id": 25763689}, {"created_time": "2011-02-01T02:22:39+0000", "message": "Redbull Rocks", "from": {"username": "isralab", "full_name": " ", "type": "user", "id": 956389}, "id": 25789588}], "caption": {"created_time": "2011-02-01T01:02:05+0000", "message": "@RBMA Radio On The Floor", "from": {"username": "redbull", "full_name": "Red Bull ", "type": "user", "id": 476322}, "id": 25763689}, "like_count": 21, "link": "http://api_privatebeta.instagr.am/p/BUhck/", "user": {"username": "redbull", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_476322_75sq_1288938542.jpg", "id": 476322}, "created_time": "2011-02-01T01:00:54+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/9fa09a78ca76456f9fecc2f8e52df267_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22157092, "location": {"latitude": 29.956858, "longitude": -90.070908000000003, "id": 553720, "street_address": "1018 Bienville St", "name": "Traffic Boutique"}}, {"type": 1, "comments": [], "caption": null, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUg-1/", "user": {"username": "ellbie", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_71612_75sq_1291676961.jpg", "id": 71612}, "created_time": "2011-02-01T00:51:22+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5bdc480363cb44ef89de3256ee7fb808_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22155189, "location": {"latitude": 37.791523701325012, "longitude": -122.4276065826416, "id": 4158, "street_address": "2000 Sacramento St", "name": "Lafayette Square Park"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:49:52+0000", "message": "In all my life…", "from": {"username": "acordova", "full_name": "Alexis Cordova", "type": "user", "id": 6875}, "id": 25759549}], "caption": {"created_time": "2011-02-01T00:49:52+0000", "message": "In all my life…", "from": {"username": "acordova", "full_name": "Alexis Cordova", "type": "user", "id": 6875}, "id": 25759549}, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BUg6V/", "user": {"username": "acordova", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_6875_75sq_1293927240.jpg", "id": 6875}, "created_time": "2011-02-01T00:49:49+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/f2905258ed5641b4b524744f01831399_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22154901, "location": {"latitude": 37.734432499999997, "longitude": -122.4339834, "id": 1181335, "street_address": "701 Chenery St", "name": "Glen Park Cleaners"}}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:37:03+0000", "message": "Ann Curry at the NBC Nightly News Desk while Brian Williams anchors from Cairo, Egypt.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25755302}, {"created_time": "2011-02-01T00:41:49+0000", "message": "If she has an iPhone, you should get her on IG She's good at twitter", "from": {"username": "tigerbeat", "full_name": "Steve Rhodes", "type": "user", "id": 11687}, "id": 25756880}, {"created_time": "2011-02-01T00:49:23+0000", "message": "I'm from England and have no idea who she is but 'Go Ann Curry!' all the same! :D", "from": {"username": "calumgray1", "full_name": "Calum Gray", "type": "user", "id": 392158}, "id": 25759396}, {"created_time": "2011-02-01T01:01:26+0000", "message": "Great shot. Love Ann Curry.", "from": {"username": "michelelewis", "full_name": "Michele Lewis", "type": "user", "id": 1579323}, "id": 25763475}, {"created_time": "2011-02-01T01:02:17+0000", "message": "Love Ann Curry!", "from": {"username": "nubianp", "full_name": "Phyllis Bradley", "type": "user", "id": 170540}, "id": 25763755}, {"created_time": "2011-02-01T01:16:20+0000", "message": "Awesome! Love her:)", "from": {"username": "cameragirl5d", "full_name": " ", "type": "user", "id": 1034490}, "id": 25768286}, {"created_time": "2011-02-01T01:45:01+0000", "message": "Thank you all for the likes and great comments.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25777448}], "caption": {"created_time": "2011-02-01T00:37:03+0000", "message": "Ann Curry at the NBC Nightly News Desk while Brian Williams anchors from Cairo, Egypt.", "from": {"username": "nbcnews", "full_name": "NBC News", "type": "user", "id": 1269598}, "id": 25755302}, "like_count": 36, "link": "http://api_privatebeta.instagr.am/p/BUgOX/", "user": {"username": "nbcnews", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1269598_75sq_1294082789.jpg", "id": 1269598}, "created_time": "2011-02-01T00:35:59+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/16369cb3d68547928b7b6ff3a4ab6819_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22152087, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:25:01+0000", "message": "Venezia", "from": {"username": "nnowell", "full_name": "Nicholas Nowell", "type": "user", "id": 965618}, "id": 25751522}], "caption": {"created_time": "2011-02-01T00:25:01+0000", "message": "Venezia", "from": {"username": "nnowell", "full_name": "Nicholas Nowell", "type": "user", "id": 965618}, "id": 25751522}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUfr3/", "user": {"username": "nnowell", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_965618_75sq_1294506500.jpg", "id": 965618}, "created_time": "2011-02-01T00:24:59+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/3817215cd1c14fe1a58bd7e2a74c5666_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22149879, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:22:22+0000", "message": "How many GRAMMY winners can you identify?", "from": {"username": "thegrammys", "full_name": "The GRAMMYs ", "type": "user", "id": 1352742}, "id": 25750661}], "caption": {"created_time": "2011-02-01T00:22:22+0000", "message": "How many GRAMMY winners can you identify?", "from": {"username": "thegrammys", "full_name": "The GRAMMYs ", "type": "user", "id": 1352742}, "id": 25750661}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BUfie/", "user": {"username": "thegrammys", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1352742_75sq_1294269333.jpg", "id": 1352742}, "created_time": "2011-02-01T00:22:15+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/34fdd197506e4df8a6e7274f3384a2ba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22149278, "location": null}, {"type": 1, "comments": [{"created_time": "2011-02-01T00:19:56+0000", "message": "Ear Inn", "from": {"username": "laughingsquid", "full_name": "Scott Beale", "type": "user", "id": 78}, "id": 25749870}, {"created_time": "2011-02-01T00:43:26+0000", "message": "BAR", "from": {"username": "prettydreamy", "full_name": "becky a", "type": "user", "id": 236041}, "id": 25757430}, {"created_time": "2011-02-01T00:51:25+0000", "message": "Right around the corner from my work!!!! Next time ping me. Dig the poster in the far left corner that shows the medical effects of alcohol on the body over time ... And the diving helmet with inches of dust on it. :-)", "from": {"username": "skimen", "full_name": "Shel ", "type": "user", "id": 797880}, "id": 25760087}, {"created_time": "2011-02-01T01:05:54+0000", "message": "Lol", "from": {"username": "chuyyei", "full_name": "Chuy Hdz", "type": "user", "id": 96666}, "id": 25764870}], "caption": {"created_time": "2011-02-01T00:19:56+0000", "message": "Ear Inn", "from": {"username": "laughingsquid", "full_name": "Scott Beale", "type": "user", "id": 78}, "id": 25749870}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BUfab/", "user": {"username": "laughingsquid", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_78_75sq_1284668609.jpg", "id": 78}, "created_time": "2011-02-01T00:19:54+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/11f9441036904fa38c9c051f99252329_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22148763, "location": {"latitude": 40.7258, "longitude": -74.009500000000003, "id": 512606, "street_address": "326 Spring St", "name": "Ear Inn"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T22:59:01+0000", "message": "hanging with @Jyri ", "from": {"username": "om", "full_name": "om malik", "type": "user", "id": 2637}, "id": 25720871}, {"created_time": "2011-02-01T01:39:34+0000", "message": "Say hi to Jyri!", "from": {"username": "loiclemeur", "full_name": " ", "type": "user", "id": 873467}, "id": 25775778}], "caption": {"created_time": "2011-01-31T22:59:01+0000", "message": "hanging with @Jyri ", "from": {"username": "om", "full_name": "om malik", "type": "user", "id": 2637}, "id": 25720871}, "like_count": 2, "link": "http://api_privatebeta.instagr.am/p/BUbbv/", "user": {"username": "om", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_2637_75sq_1286977009.jpg", "id": 2637}, "created_time": "2011-01-31T22:58:49+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/a1de40c16676449c949fd6160d7da17f_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22132463, "location": {"latitude": 37.782400000000003, "longitude": -122.38800000000001, "id": 509, "street_address": "800 Embarcadero St", "name": "South Beach Cafe"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T22:26:33+0000", "message": "Nap time", "from": {"username": "crystaljohnstone", "full_name": " ", "type": "user", "id": 1106035}, "id": 25709784}], "caption": {"created_time": "2011-01-31T22:26:33+0000", "message": "Nap time", "from": {"username": "crystaljohnstone", "full_name": " ", "type": "user", "id": 1106035}, "id": 25709784}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUZ40/", "user": {"username": "crystaljohnstone", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1106035_75sq_1292963069.jpg", "id": 1106035}, "created_time": "2011-01-31T22:26:27+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/8ba088bc1f384e148b321bb04c2dab34_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22126132, "location": null}, {"type": 1, "comments": [], "caption": null, "like_count": 9, "link": "http://api_privatebeta.instagr.am/p/BUVx9/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T20:56:24+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/906f169dfb0c44adbc24db10c2884992_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22109309, "location": {"latitude": 21.362861200000001, "longitude": -157.9539494, "id": 235776, "street_address": "63 Cowpens Street", "name": "Battleship Missouri Memorial"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T23:41:03+0000", "message": "Bummed this was closed when I last went to Hawaii", "from": {"username": "luomen", "full_name": "Ken Chu", "type": "user", "id": 592480}, "id": 25736141}], "caption": null, "like_count": 21, "link": "http://api_privatebeta.instagr.am/p/BUVmG/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T20:51:48+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/1e6beabcb1134de2879b3eed80722bba_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22108550, "location": {"latitude": 21.362861200000001, "longitude": -157.9539494, "id": 235776, "street_address": "63 Cowpens Street", "name": "Battleship Missouri Memorial"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T20:13:50+0000", "message": "After a week on the east coast I need to have Mexican food again", "from": {"username": "nolan", "full_name": "Nolan Brown", "type": "user", "id": 7358}, "id": 25670769}], "caption": {"created_time": "2011-01-31T20:13:50+0000", "message": "After a week on the east coast I need to have Mexican food again", "from": {"username": "nolan", "full_name": "Nolan Brown", "type": "user", "id": 7358}, "id": 25670769}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BUT91/", "user": {"username": "nolan", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_7358_75sq_1292167370.jpg", "id": 7358}, "created_time": "2011-01-31T20:13:04+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/46ff6c7e241b49ceba0f3b33e230244b_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22101877, "location": {"latitude": 37.777305400000003, "longitude": -122.39522030000001, "id": 372, "street_address": "683 4th St", "name": "the Iron Cactus"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T19:47:08+0000", "message": "@mikeyk pulls a shot on our Expobar / cc @stephen_vick (yes, I know we need demitasses)", "from": {"username": "josh", "full_name": "Josh Riedel", "type": "user", "id": 33}, "id": 25663923}, {"created_time": "2011-01-31T19:50:30+0000", "message": "That thing looks super complicated!", "from": {"username": "mtleese13", "full_name": "Mercedes ", "type": "user", "id": 1538989}, "id": 25664788}, {"created_time": "2011-01-31T20:09:00+0000", "message": "Wow!!! I want one in my kitchen and office!", "from": {"username": "swade77", "full_name": " ", "type": "user", "id": 749109}, "id": 25669509}, {"created_time": "2011-01-31T20:56:35+0000", "message": "Yes!", "from": {"username": "aron", "full_name": "Aron Hegyi", "type": "user", "id": 58}, "id": 25682766}], "caption": {"created_time": "2011-01-31T19:47:08+0000", "message": "@mikeyk pulls a shot on our Expobar / cc @stephen_vick (yes, I know we need demitasses)", "from": {"username": "josh", "full_name": "Josh Riedel", "type": "user", "id": 33}, "id": 25663923}, "like_count": 50, "link": "http://api_privatebeta.instagr.am/p/BUS3X/", "user": {"username": "josh", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_33_75sq_1291935187.jpg", "id": 33}, "created_time": "2011-01-31T19:45:55+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/32d364527512437a8a17ba308a7c83bb_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22097367, "location": {"latitude": 37.780885099999999, "longitude": -122.3948632, "id": 514276, "street_address": "164 south park", "name": "Instagram"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T19:44:37+0000", "message": "Zoey ", "from": {"username": "svanhout", "full_name": " ", "type": "user", "id": 1578415}, "id": 25663249}, {"created_time": "2011-02-01T00:56:09+0000", "message": "Great pic", "from": {"username": "justinmarshall", "full_name": " ", "type": "user", "id": 696557}, "id": 25761726}], "caption": {"created_time": "2011-01-31T19:44:37+0000", "message": "Zoey ", "from": {"username": "svanhout", "full_name": " ", "type": "user", "id": 1578415}, "id": 25663249}, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BUSrK/", "user": {"username": "svanhout", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1578415_75sq_1295492261.jpg", "id": 1578415}, "created_time": "2011-01-31T19:41:24+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/6e95b4d4d4534978995f72139d3773ab_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22096586, "location": null}, {"type": 1, "comments": [{"created_time": "2011-01-31T18:02:57+0000", "message": "Officially signed up! Now to convince @chojennyik to run it with me (her 2nd time)", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25636189}, {"created_time": "2011-01-31T18:03:50+0000", "message": "Fez muito bem!!! Parabéns pela decisão!", "from": {"username": "marcia", "full_name": "Marcia Krieger", "type": "user", "id": 69}, "id": 25636423}, {"created_time": "2011-01-31T18:03:51+0000", "message": "Umm I'll cheer and take pics!", "from": {"username": "chojennyik", "full_name": "Jenny Cho", "type": "user", "id": 9468}, "id": 25636426}, {"created_time": "2011-01-31T18:04:23+0000", "message": "Cedar point after!!", "from": {"username": "chojennyik", "full_name": "Jenny Cho", "type": "user", "id": 9468}, "id": 25636571}, {"created_time": "2011-01-31T18:07:34+0000", "message": "Yess, roller coasters won't phase me after this haha @chojennyik", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25637418}, {"created_time": "2011-01-31T18:25:55+0000", "message": "Love :D", "from": {"username": "mookio", "full_name": "Mookio Chen", "type": "user", "id": 4761}, "id": 25642341}], "caption": {"created_time": "2011-01-31T18:02:57+0000", "message": "Officially signed up! Now to convince @chojennyik to run it with me (her 2nd time)", "from": {"username": "stefkrieger", "full_name": "Stefanie Krieger", "type": "user", "id": 14}, "id": 25636189}, "like_count": 4, "link": "http://api_privatebeta.instagr.am/p/BUOmo/", "user": {"username": "stefkrieger", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_14_75sq_1290717659.jpg", "id": 14}, "created_time": "2011-01-31T18:01:53+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/bc4fe9ce64d343acb1981c9292436fbb_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22079912, "location": null}, {"type": 1, "comments": [{"created_time": "2011-01-31T17:27:54+0000", "message": "@gigi22 @deidre817 @emikop the race is on", "from": {"username": "erinishuman", "full_name": "Erin Craig", "type": "user", "id": 3166}, "id": 25626431}, {"created_time": "2011-01-31T17:28:54+0000", "message": "@deidre817 :: red slug bug thanks erin!!!", "from": {"username": "emikop", "full_name": "Emiko  ", "type": "user", "id": 429483}, "id": 25626753}, {"created_time": "2011-01-31T17:33:25+0000", "message": "this beetle is great", "from": {"username": "protest", "full_name": "Slava Barinov", "type": "user", "id": 1279308}, "id": 25628148}, {"created_time": "2011-01-31T17:48:38+0000", "message": "I don't think I've seen an image as ripe for \"Pop-rocket\" as this one.", "from": {"username": "danapalooza", "full_name": "Daniel Markham", "type": "user", "id": 5334}, "id": 25632340}, {"created_time": "2011-01-31T17:49:37+0000", "message": "Love these bugs", "from": {"username": "noushinnouri", "full_name": "NoushinPhotography.com ", "type": "user", "id": 1377850}, "id": 25632627}, {"created_time": "2011-01-31T18:15:58+0000", "message": "Punch!!!!! ", "from": {"username": "love2snap", "full_name": "Jessica Anne", "type": "user", "id": 289485}, "id": 25639686}, {"created_time": "2011-01-31T18:26:56+0000", "message": "Very nice", "from": {"username": "mducatti", "full_name": "Mauro Ducatti", "type": "user", "id": 107949}, "id": 25642631}, {"created_time": "2011-01-31T18:37:00+0000", "message": "Ahhh I had a blue one", "from": {"username": "mgoblue", "full_name": "Chris P", "type": "user", "id": 47}, "id": 25645292}, {"created_time": "2011-01-31T19:13:07+0000", "message": "", "from": {"username": "anniebluesky", "full_name": "iphoneography  ", "type": "user", "id": 108834}, "id": 25655233}, {"created_time": "2011-01-31T21:07:09+0000", "message": "Like time travel.", "from": {"username": "ktchn", "full_name": "Katy Chan", "type": "user", "id": 1016630}, "id": 25685851}, {"created_time": "2011-01-31T23:12:33+0000", "message": "looks like my brother in-laws bug!", "from": {"username": "hboo", "full_name": "drewgar'sboo. ", "type": "user", "id": 377036}, "id": 25725543}, {"created_time": "2011-02-01T00:22:32+0000", "message": "@emikop I can't slug bug  @gigi22 she's not here anymore ", "from": {"username": "deidre817", "full_name": "Deidre Carvey", "type": "user", "id": 463663}, "id": 25750702}, {"created_time": "2011-02-01T00:23:05+0000", "message": "That's a sweet bug :)", "from": {"username": "deidre817", "full_name": "Deidre Carvey", "type": "user", "id": 463663}, "id": 25750881}, {"created_time": "2011-02-01T00:38:42+0000", "message": "Yeaaa", "from": {"username": "mrwhite", "full_name": "GoldDust  ", "type": "user", "id": 629279}, "id": 25755864}], "caption": null, "like_count": 153, "link": "http://api_privatebeta.instagr.am/p/BUNFi/", "user": {"username": "kevin", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_3_75sq_1295574122.jpg", "id": 3}, "created_time": "2011-01-31T17:26:41+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/25292db7581e47d3a7b1af975a039846_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22073698, "location": {"latitude": 37.78246395814844, "longitude": -122.4078226089478, "id": 164, "street_address": "66 Mint Plaza", "name": "Blue Bottle Café"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T17:06:29+0000", "message": "Run home jack", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25619612}, {"created_time": "2011-01-31T17:57:15+0000", "message": "Headed home?", "from": {"username": "idluvto", "full_name": " ", "type": "user", "id": 1718709}, "id": 25634672}, {"created_time": "2011-01-31T18:19:49+0000", "message": "@idluvto .. Should be home by 3", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25640716}], "caption": {"created_time": "2011-01-31T17:06:29+0000", "message": "Run home jack", "from": {"username": "gabe_hawk", "full_name": "Gabe Velasquez", "type": "user", "id": 820738}, "id": 25619612}, "like_count": 3, "link": "http://api_privatebeta.instagr.am/p/BUMLZ/", "user": {"username": "gabe_hawk", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_820738_75sq_1292035867.jpg", "id": 820738}, "created_time": "2011-01-31T17:06:26+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4c704f8a5a6c4e43b05d484884048623_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22069977, "location": {"latitude": 33.930381699999998, "longitude": -118.3685455, "id": 343419, "street_address": "Los Angeles, CA 90045", "name": "LAX Tarmac"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T16:53:03+0000", "message": "Good morning! ", "from": {"username": "dlprager", "full_name": "David Prager", "type": "user", "id": 143217}, "id": 25615335}, {"created_time": "2011-01-31T23:37:20+0000", "message": "Planning to be in that exact place in three weeks.", "from": {"username": "lizg", "full_name": "Liz Gannes", "type": "user", "id": 112}, "id": 25734720}], "caption": {"created_time": "2011-01-31T16:53:03+0000", "message": "Good morning! ", "from": {"username": "dlprager", "full_name": "David Prager", "type": "user", "id": 143217}, "id": 25615335}, "like_count": 14, "link": "http://api_privatebeta.instagr.am/p/BULiy/", "user": {"username": "dlprager", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_143217_75sq_1287203497.jpg", "id": 143217}, "created_time": "2011-01-31T16:52:25+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/4aba3cd428194f82a7befbf06e3de212_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22067378, "location": {"latitude": 21.337821999999999, "longitude": -157.69990300000001, "id": 260110, "street_address": "", "name": "Waimanalo Beach"}}, {"type": 1, "comments": [{"created_time": "2011-01-31T16:32:22+0000", "message": "A little slice of heaven (Orval cheese)", "from": {"username": "doug", "full_name": "Doug Systrom", "type": "user", "id": 17}, "id": 25608572}], "caption": {"created_time": "2011-01-31T16:32:22+0000", "message": "A little slice of heaven (Orval cheese)", "from": {"username": "doug", "full_name": "Doug Systrom", "type": "user", "id": 17}, "id": 25608572}, "like_count": 13, "link": "http://api_privatebeta.instagr.am/p/BUKgb/", "user": {"username": "doug", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_17_75sq_1292890348.jpg", "id": 17}, "created_time": "2011-01-31T16:31:34+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/31/5e4d7b1fca294f569bf0137da9ca2966_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": 22063131, "location": null}]}
@@ -45,8 +45,8 @@ describe Instagram::Client do
45
45
 
46
46
  it "should return a list of media taken at a given location" do
47
47
  media = @client.location_recent_media(514276)
48
- media.data.should be_a Array
49
- media.data.first.user.username.should == "josh"
48
+ media.should be_a Array
49
+ media.first.user.username.should == "josh"
50
50
  end
51
51
  end
52
52
 
@@ -69,8 +69,8 @@ describe Instagram::Client do
69
69
 
70
70
  it "should return an array of user search results" do
71
71
  media_search = @client.media_search("37.7808851", "-122.3948632")
72
- media_search.data.should be_a Array
73
- media_search.data.first.user.username.should == "mikeyk"
72
+ media_search.should be_a Array
73
+ media_search.first.user.username.should == "mikeyk"
74
74
  end
75
75
  end
76
76
  end
@@ -145,4 +145,4 @@ describe Instagram::Client do
145
145
  end
146
146
  end
147
147
  end
148
- end
148
+ end
@@ -45,8 +45,8 @@ describe Instagram::Client do
45
45
 
46
46
  it "should return a list of media taken at a given location" do
47
47
  media = @client.tag_recent_media('cat')
48
- media.data.should be_a Array
49
- media.data.first.user.username.should == "amandavan"
48
+ media.should be_a Array
49
+ media.first.user.username.should == "amandavan"
50
50
  end
51
51
  end
52
52
 
@@ -168,6 +168,31 @@ describe Instagram::Client do
168
168
  with(:query => {:access_token => @client.access_token}).
169
169
  should have_been_made
170
170
  end
171
+
172
+ context Instagram::Response do
173
+ let(:user_media_feed_response){ @client.user_media_feed }
174
+ subject{ user_media_feed_response }
175
+
176
+ it{ should be_an_instance_of(Array) }
177
+ it{ should be_a_kind_of(Instagram::Response) }
178
+ it{ should respond_to(:pagination) }
179
+ it{ should respond_to(:meta) }
180
+
181
+ context '.pagination' do
182
+ subject{ user_media_feed_response.pagination }
183
+
184
+ it{ should be_an_instance_of(Hashie::Mash) }
185
+ its(:next_url){ should == 'http://api.instagram.com/v1/users/self/feed?access_token=f59def8.001cde77128843169627c0308237bafa&max_id=22063131' }
186
+ its(:next_max_id){ should == '22063131' }
187
+ end
188
+
189
+ context '.meta' do
190
+ subject{ user_media_feed_response.meta }
191
+
192
+ it{ should be_an_instance_of(Hashie::Mash) }
193
+ its(:code){ should == 200 }
194
+ end
195
+ end
171
196
  end
172
197
 
173
198
  describe ".user_liked_media" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instagram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
12
+ date: 2013-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -170,6 +170,7 @@ files:
170
170
  - lib/instagram/error.rb
171
171
  - lib/instagram/oauth.rb
172
172
  - lib/instagram/request.rb
173
+ - lib/instagram/response.rb
173
174
  - lib/instagram/version.rb
174
175
  - spec/faraday/response_spec.rb
175
176
  - spec/fixtures/access_token.json
@@ -240,7 +241,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
241
  version: '0'
241
242
  segments:
242
243
  - 0
243
- hash: 3320943877353398037
244
+ hash: 1035200537169890333
244
245
  required_rubygems_version: !ruby/object:Gem::Requirement
245
246
  none: false
246
247
  requirements: