instagram 0.6.2 → 0.7

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/README.md CHANGED
@@ -131,9 +131,9 @@ Submitting a Pull Request
131
131
  2. Create a topic branch.
132
132
  3. Implement your feature or bug fix.
133
133
  4. Add documentation for your feature or bug fix.
134
- 5. Run <tt>bundle exec rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
134
+ 5. Run <tt>rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
135
135
  6. Add specs for your feature or bug fix.
136
- 7. Run <tt>bundle exec rake spec</tt>. If your changes are not 100% covered, go back to step 6.
136
+ 7. Run <tt>rake spec</tt>. If your changes are not 100% covered, go back to step 6.
137
137
  8. Commit and push your changes.
138
138
  9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
139
139
 
data/Rakefile CHANGED
@@ -7,16 +7,21 @@ RSpec::Core::RakeTask.new(:spec)
7
7
  task :default => :spec
8
8
 
9
9
  namespace :doc do
10
- require 'yard'
11
- YARD::Rake::YardocTask.new do |task|
12
- task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
13
- task.options = [
14
- '--protected',
15
- '--output-dir', 'doc/yard',
16
- '--tag', 'format:Supported formats',
17
- '--tag', 'authenticated:Requires Authentication',
18
- '--tag', 'rate_limited:Rate Limited',
19
- '--markup', 'markdown',
20
- ]
10
+ begin
11
+ require 'yard'
12
+ rescue LoadError
13
+ # ignore
14
+ else
15
+ YARD::Rake::YardocTask.new do |task|
16
+ task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
17
+ task.options = [
18
+ '--protected',
19
+ '--output-dir', 'doc/yard',
20
+ '--tag', 'format:Supported formats',
21
+ '--tag', 'authenticated:Requires Authentication',
22
+ '--tag', 'rate_limited:Rate Limited',
23
+ '--markup', 'markdown',
24
+ ]
25
+ end
21
26
  end
22
27
  end
data/instagram.gemspec CHANGED
@@ -2,18 +2,13 @@
2
2
  require File.expand_path('../lib/instagram/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.add_development_dependency('bundler', '~> 1.0')
6
- s.add_development_dependency('rake', '~> 0.8')
7
5
  s.add_development_dependency('rspec', '~> 2.4')
8
- s.add_development_dependency('yard', '~> 0.6')
9
- s.add_development_dependency('simplecov', '~> 0.3')
10
6
  s.add_development_dependency('webmock', '~> 1.6')
11
- s.add_development_dependency('ZenTest', '~> 4.4')
12
7
  s.add_development_dependency('bluecloth', '~> 2.0.11')
13
8
  s.add_runtime_dependency('faraday', '~> 0.5.4')
14
9
  s.add_runtime_dependency('faraday_middleware', '~> 0.3.1')
15
10
  s.add_runtime_dependency('multi_json', '~> 0.0.5')
16
- s.add_runtime_dependency('hashie', '~> 1.0.0')
11
+ s.add_runtime_dependency('hashie', '>= 0.4.0')
17
12
  s.authors = ["Shayne Sweeney"]
18
13
  s.description = %q{A Ruby wrapper for the Instagram REST and Search APIs}
19
14
  s.post_install_message =<<eos
@@ -29,7 +29,7 @@ module Faraday
29
29
  def self.error_body(body)
30
30
  if body.nil?
31
31
  nil
32
- elsif body['meta'] and not body['meta']['error_message'].blank?
32
+ elsif body['meta'] and body['meta']['error_message'] and not body['meta']['error_message'].empty?
33
33
  ": #{body['meta']['error_message']}"
34
34
  end
35
35
  end
@@ -136,7 +136,7 @@ module Instagram
136
136
 
137
137
  # Returns a list of recent media items for a given user
138
138
  #
139
- # @overload user_recent_media(id=nil, options={})
139
+ # @overload user_recent_media(options={})
140
140
  # @param options [Hash] A customizable set of options.
141
141
  # @return [Hashie::Mash]
142
142
  # @example Returns a list of recent media items for the currently authenticated user
@@ -149,7 +149,7 @@ module Instagram
149
149
  # @return [Hashie::Mash]
150
150
  # @example Return a list of media items taken by @mikeyk
151
151
  # Instagram.user_recent_media(4) # @mikeyk user ID being 4
152
- # @see TODO:docs url
152
+ # @see http://instagram.com/developer/endpoints/users/#get_users_media_recent
153
153
  # @format :json
154
154
  # @authenticated false unless requesting it from a protected user
155
155
  #
@@ -162,6 +162,24 @@ module Instagram
162
162
  response["data"]
163
163
  end
164
164
 
165
+ # Returns a list of media items liked by the current user
166
+ #
167
+ # @overload user_liked_media(options={})
168
+ # @param options [Hash] A customizable set of options.
169
+ # @option options [Integer] :max_like_id (nil) Returns results with an ID less than (that is, older than) or equal to the specified ID.
170
+ # @option options [Integer] :count (nil) Limits the number of results returned per page.
171
+ # @return [Hashie::Mash]
172
+ # @example Returns a list of media items liked by the currently authenticated user
173
+ # Instagram.user_liked_media
174
+ # @see http://instagram.com/developer/endpoints/users/#get_users_liked_feed
175
+ # @format :json
176
+ # @authenticated true
177
+ # @rate_limited true
178
+ def user_liked_media(options={})
179
+ response = get("users/self/media/liked", options)
180
+ response["data"]
181
+ end
182
+
165
183
  # Returns information about the current user's relationship (follow/following/etc) to another user
166
184
  #
167
185
  # @overload user_relationship(id, options={})
@@ -1,3 +1,3 @@
1
1
  module Instagram
2
- VERSION = '0.6.2'.freeze unless defined?(::Instagram::VERSION)
2
+ VERSION = '0.7'.freeze unless defined?(::Instagram::VERSION)
3
3
  end
@@ -0,0 +1 @@
1
+ {"pagination": {"next_url": "https://api.instagram.com/v1/users/self/media/liked?access_token=20.e3ef9b3.7d489cfae47a4fb59ce81e3fb988f902&max_like_id=318604182", "next_max_like_id": "318604182"}, "meta": {"code": 200}, "data": [{"tags": [], "type": "image", "location": {"latitude": 37.785530000000001, "longitude": -122.40300000000001}, "comments": {"count": 0, "data": []}, "filter": "X-Pro II", "created_time": "1306948518", "link": "http://instagr.am/p/FCK52/", "likes": {"count": 13, "data": [{"username": "gambit", "profile_picture": "http://images.instagram.com/profiles/profile_4503_75sq_1302724599.jpg", "id": "4503", "full_name": "GJT"}, {"username": "dr_sussi", "profile_picture": "http://images.instagram.com/profiles/profile_3968053_75sq_1306330472.jpg", "id": "3968053", "full_name": "Sussi \uf8ff"}, {"username": "devinsnipes", "profile_picture": "http://images.instagram.com/profiles/profile_9840_75sq_1306938541.jpg", "id": "9840", "full_name": "Devin Snipes"}, {"username": "sharlek", "profile_picture": "http://images.instagram.com/profiles/profile_104411_75sq_1306447979.jpg", "id": "104411", "full_name": "David Charlec"}, {"username": "only_iphone3gs", "profile_picture": "http://images.instagram.com/profiles/profile_1158271_75sq_1306522197.jpg", "id": "1158271", "full_name": "Cl\u00e1udio Cezar"}, {"username": "parislemon", "profile_picture": "http://images.instagram.com/profiles/profile_28_75sq_1289965223.jpg", "id": "28", "full_name": "MG Siegler"}, {"username": "davisome", "profile_picture": "http://images.instagram.com/profiles/profile_1936_75sq_1301966497.jpg", "id": "1936", "full_name": "Mark Davison"}, {"username": "amywiddowson", "profile_picture": "http://images.instagram.com/profiles/profile_170935_75sq_1295747465.jpg", "id": "170935", "full_name": "Amy Widdowson"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/06/01/46ca0164b03844709ecfcfbd103059ec_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/06/01/46ca0164b03844709ecfcfbd103059ec_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/06/01/46ca0164b03844709ecfcfbd103059ec_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306948701", "text": "i ", "from": {"username": "clove", "bio": "twitter.com/clove", "profile_picture": "http://images.instagram.com/profiles/profile_11112_75sq_1286425447.jpg", "id": "11112", "full_name": "Charlie Love"}, "id": "106378899"}, "user_has_liked": true, "id": "84455030", "user": {"username": "clove", "bio": "twitter.com/clove", "profile_picture": "http://images.instagram.com/profiles/profile_11112_75sq_1286425447.jpg", "id": "11112", "full_name": "Charlie Love"}}, {"tags": [], "type": "image", "location": null, "comments": {"count": 0, "data": []}, "filter": "1977", "created_time": "1306951296", "link": "http://instagr.am/p/FCQ8E/", "likes": {"count": 2, "data": [{"username": "mrlouie", "profile_picture": "http://images.instagram.com/profiles/profile_2517087_75sq_1300502492.jpg", "id": "2517087", "full_name": "Louie"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/06/01/106071cabbef4e2384ab7ba31359c9b1_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/06/01/106071cabbef4e2384ab7ba31359c9b1_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/06/01/106071cabbef4e2384ab7ba31359c9b1_7.jpg", "width": 612, "height": 612}}, "caption": null, "user_has_liked": true, "id": "84479748", "user": {"username": "lost_in_lust", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_4321245_75sq_1306413354.jpg", "id": "4321245", "full_name": "Iulia Cojocariu"}}, {"tags": [], "type": "image", "location": null, "comments": {"count": 0, "data": []}, "filter": "Walden", "created_time": "1306889318", "link": "http://instagr.am/p/FAVr-/", "likes": {"count": 6, "data": [{"username": "lost_in_lust", "profile_picture": "http://images.instagram.com/profiles/profile_4321245_75sq_1306413354.jpg", "id": "4321245", "full_name": "Iulia Cojocariu"}, {"username": "ppcc630", "profile_picture": "http://images.instagram.com/profiles/profile_4595007_75sq_1306939615.jpg", "id": "4595007", "full_name": ""}, {"username": "niu0806", "profile_picture": "http://images.instagram.com/profiles/profile_4588363_75sq_1306922306.jpg", "id": "4588363", "full_name": ""}, {"username": "gabeem", "profile_picture": "http://images.instagram.com/profiles/profile_1928200_75sq_1306376585.jpg", "id": "1928200", "full_name": "Gabrielle"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "igraham", "profile_picture": "http://images.instagram.com/profiles/profile_1226388_75sq_1299249671.jpg", "id": "1226388", "full_name": "Ian Graham"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/0cf90ab0767d47f2b7692456199d09d2_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/0cf90ab0767d47f2b7692456199d09d2_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/0cf90ab0767d47f2b7692456199d09d2_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306889320", "text": "A rose from our garden.", "from": {"username": "jberg", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}, "id": "105726602"}, "user_has_liked": true, "id": "83974910", "user": {"username": "jberg", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}}, {"tags": [], "type": "image", "location": {"latitude": 37.779330732828079, "name": "San Francisco City Hall", "longitude": -122.41922736167911, "id": 896}, "comments": {"count": 16, "data": [{"created_time": "1306896201", "text": "@jayzombie babe.", "from": {"username": "boltron", "profile_picture": "http://images.instagram.com/profiles/profile_24264_75sq_1288008305.jpg", "id": "24264", "full_name": "Nate \ue13d"}, "id": "105810909"}, {"created_time": "1306896222", "text": "@boltron BABE!", "from": {"username": "jayzombie", "profile_picture": "http://images.instagram.com/profiles/profile_95_75sq_1305267089.jpg", "id": "95", "full_name": "Jessica"}, "id": "105811182"}, {"created_time": "1306896374", "text": "so good", "from": {"username": "wang01yan", "profile_picture": "http://images.instagram.com/profiles/profile_3733380_75sq_1304752917.jpg", "id": "3733380", "full_name": ""}, "id": "105813045"}, {"created_time": "1306899276", "text": "Looks like the white house", "from": {"username": "sousahenrique", "profile_picture": "http://images.instagram.com/profiles/profile_1280959_75sq_1303122144.jpg", "id": "1280959", "full_name": "Henrique Sousa"}, "id": "105849744"}, {"created_time": "1306900929", "text": "\ue00e\ue00e\ue00e", "from": {"username": "adri_tj", "profile_picture": "http://images.instagram.com/profiles/profile_4226832_75sq_1306813643.jpg", "id": "4226832", "full_name": "\u00a9 Adrianus Tj \u2122 \ue32b\ue008\ue00a"}, "id": "105870645"}, {"created_time": "1306906088", "text": "\ue32a\ue32a\ue32a\ue32a\ue32a\ue32b\ue32c!!", "from": {"username": "mrslollyphunk", "profile_picture": "http://images.instagram.com/profiles/profile_3033078_75sq_1306258312.jpg", "id": "3033078", "full_name": "Elizabeth Neri"}, "id": "105930182"}, {"created_time": "1306907414", "text": "Mighty fine.", "from": {"username": "pterodactyl", "profile_picture": "http://images.instagram.com/profiles/profile_4956_75sq_1306532902.jpg", "id": "4956", "full_name": "Caleb Wong"}, "id": "105943910"}, {"created_time": "1306924960", "text": "Very nice shot!!", "from": {"username": "sacville", "profile_picture": "http://images.instagram.com/profiles/profile_1640871_75sq_1305580397.jpg", "id": "1640871", "full_name": ""}, "id": "106094401"}]}, "filter": "Brannan", "created_time": "1306892029", "link": "http://instagr.am/p/FAb4x/", "likes": {"count": 367, "data": [{"username": "seabear", "profile_picture": "http://images.instagram.com/profiles/profile_1414907_75sq_1306117633.jpg", "id": "1414907", "full_name": "amanda."}, {"username": "1616bennkyou", "profile_picture": "http://images.instagram.com/profiles/profile_427944_75sq_1298639762.jpg", "id": "427944", "full_name": ""}, {"username": "filipinocali", "profile_picture": "http://images.instagram.com/profiles/profile_2203707_75sq_1306373180.jpg", "id": "2203707", "full_name": "\ue12bMargot Bautista\ue12b"}, {"username": "janniejan", "profile_picture": "http://images.instagram.com/profiles/profile_420863_75sq_1291786301.jpg", "id": "420863", "full_name": "Jan Waller"}, {"username": "katiecrazy", "profile_picture": "http://images.instagram.com/profiles/profile_4243466_75sq_1306444705.jpg", "id": "4243466", "full_name": "\ue32c\ue328\u0198\u0251\u0535\u00ed\u04bd\ue328\ue32c"}, {"username": "riyazim", "profile_picture": "http://images.instagram.com/profiles/profile_3084733_75sq_1302590605.jpg", "id": "3084733", "full_name": "Riyazi Muzammil"}, {"username": "twigby", "profile_picture": "http://images.instagram.com/profiles/profile_136666_75sq_1303162319.jpg", "id": "136666", "full_name": "Jes T"}, {"username": "bagreman", "profile_picture": "http://images.instagram.com/profiles/profile_3607681_75sq_1304916928.jpg", "id": "3607681", "full_name": "The best of the beast"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/f9d566d1ca694f76bcd7b021d9f69b70_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/f9d566d1ca694f76bcd7b021d9f69b70_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/f9d566d1ca694f76bcd7b021d9f69b70_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306892055", "text": "City Hall is looking mighty pretty today!", "from": {"username": "jayzombie", "profile_picture": "http://images.instagram.com/profiles/profile_95_75sq_1305267089.jpg", "id": "95", "full_name": "Jessica"}, "id": "105760295"}, "user_has_liked": true, "id": "84000305", "user": {"username": "jayzombie", "profile_picture": "http://images.instagram.com/profiles/profile_95_75sq_1305267089.jpg", "id": "95", "full_name": "Jessica"}}, {"tags": [], "type": "image", "location": null, "comments": {"count": 0, "data": []}, "filter": "Brannan", "created_time": "1306622253", "link": "http://instagr.am/p/E2ofC/", "likes": {"count": 2, "data": [{"username": "leaven", "profile_picture": "http://images.instagram.com/profiles/profile_4575423_75sq_1306968062.jpg", "id": "4575423", "full_name": "Jacqueline Lee Rose"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/28/21d0c0fec9474f85a5685a32694a002f_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/28/21d0c0fec9474f85a5685a32694a002f_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/28/21d0c0fec9474f85a5685a32694a002f_7.jpg", "width": 612, "height": 612}}, "caption": null, "user_has_liked": true, "id": "81430466", "user": {"username": "mmagliozzi", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_1466371_75sq_1304783966.jpg", "id": "1466371", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 40.754640000000002, "name": "Black Rock Forest, New York", "longitude": -73.96387, "id": 3132510}, "comments": {"count": 0, "data": []}, "filter": "Hefe", "created_time": "1306893809", "link": "http://instagr.am/p/FAf9n/", "likes": {"count": 2, "data": [{"username": "sibley14", "profile_picture": "http://images.instagram.com/profiles/profile_2657864_75sq_1302360625.jpg", "id": "2657864", "full_name": "Adam Sibley"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/80a904f801fd41338dfcde3902f932cb_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/80a904f801fd41338dfcde3902f932cb_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/80a904f801fd41338dfcde3902f932cb_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306896051", "text": "we named him Bobby (the bear)", "from": {"username": "michaelamaureen", "bio": "", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "1911060", "full_name": ""}, "id": "105809096"}, "user_has_liked": true, "id": "84016999", "user": {"username": "michaelamaureen", "bio": "", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "1911060", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 39.758380000000002, "longitude": -121.8629}, "comments": {"count": 0, "data": []}, "filter": "Lord Kelvin", "created_time": "1306911147", "link": "http://instagr.am/p/FBEHp/", "likes": {"count": 1, "data": [{"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/a5f8ba34dd55485aaf9b5e6891e61b01_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/a5f8ba34dd55485aaf9b5e6891e61b01_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/a5f8ba34dd55485aaf9b5e6891e61b01_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306911172", "text": "Studio Inn Cocktail Lounge", "from": {"username": "jberg", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}, "id": "105979729"}, "user_has_liked": true, "id": "84165097", "user": {"username": "jberg", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}}, {"tags": [], "type": "image", "location": {"latitude": 37.425814806836648, "name": "Googleplex - CL2", "longitude": -122.07196712493899, "id": 132935}, "comments": {"count": 0, "data": []}, "filter": "X-Pro II", "created_time": "1306885574", "link": "http://instagr.am/p/FANR9/", "likes": {"count": 3, "data": [{"username": "molluscus", "profile_picture": "http://images.instagram.com/profiles/profile_143440_75sq_1287204778.jpg", "id": "143440", "full_name": "Molly Osborne"}, {"username": "mistersweaters", "profile_picture": "http://images.instagram.com/profiles/profile_3864_75sq_1286387166.jpg", "id": "3864", "full_name": "Jonathan Lally"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/160695df885d468291924008dc2af8b2_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/160695df885d468291924008dc2af8b2_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/160695df885d468291924008dc2af8b2_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306885634", "text": "Why everything is beta at Google: foosball", "from": {"username": "acordova", "bio": "Web Developer in San Francisco. Baseball kinda runs my life.", "profile_picture": "http://images.instagram.com/profiles/profile_6875_75sq_1293927240.jpg", "id": "6875", "full_name": "Alexis Cordova"}, "id": "105681774"}, "user_has_liked": true, "id": "83940477", "user": {"username": "acordova", "bio": "Web Developer in San Francisco. Baseball kinda runs my life.", "profile_picture": "http://images.instagram.com/profiles/profile_6875_75sq_1293927240.jpg", "id": "6875", "full_name": "Alexis Cordova"}}, {"tags": [], "type": "image", "location": {"latitude": 47.623486999999997, "name": "Dick's Drive-In - Queen Anne", "longitude": -122.35638299999999, "id": 157126}, "comments": {"count": 5, "data": [{"created_time": "1306878900", "text": "You know me well.", "from": {"username": "throwboy", "profile_picture": "http://images.instagram.com/profiles/profile_778643_75sq_1306744714.jpg", "id": "778643", "full_name": "Roberto Hoyos"}, "id": "105600955"}, {"created_time": "1306879010", "text": "This looks so good right now.", "from": {"username": "rafaelrodrigues", "profile_picture": "http://images.instagram.com/profiles/profile_3228070_75sq_1305702541.jpg", "id": "3228070", "full_name": "Rafael Rodrigues"}, "id": "105602275"}, {"created_time": "1306879030", "text": "Sweet lord that looks good!!!", "from": {"username": "dan_brown", "profile_picture": "http://images.instagram.com/profiles/profile_4322352_75sq_1306266750.jpg", "id": "4322352", "full_name": "Daniel Brown \ue415"}, "id": "105602526"}, {"created_time": "1306927833", "text": "I love how you aligned the focus over the meat! :-) looks delicious, how was it?", "from": {"username": "daniel277", "profile_picture": "http://images.instagram.com/profiles/profile_2403525_75sq_1299611435.jpg", "id": "2403525", "full_name": "Dan James"}, "id": "106122567"}, {"created_time": "1306951750", "text": "Noms", "from": {"username": "iellietv", "profile_picture": "http://images.instagram.com/profiles/profile_2918165_75sq_1304735713.jpg", "id": "2918165", "full_name": "Ellie Banks"}, "id": "106411632"}]}, "filter": "Hefe", "created_time": "1306878553", "link": "http://instagr.am/p/E_915/", "likes": {"count": 23, "data": [{"username": "jantonovich", "profile_picture": "http://images.instagram.com/profiles/profile_1239165_75sq_1306814456.jpg", "id": "1239165", "full_name": "Joseph Antonovich"}, {"username": "crawcraw", "profile_picture": "http://images.instagram.com/profiles/profile_1000800_75sq_1304388066.jpg", "id": "1000800", "full_name": "Chris Crawford"}, {"username": "eclecticstyle", "profile_picture": "http://images.instagram.com/profiles/profile_2824988_75sq_1301237664.jpg", "id": "2824988", "full_name": "Andrea \ue32e Amedeo"}, {"username": "todmaffin", "profile_picture": "http://images.instagram.com/profiles/profile_1108196_75sq_1305608038.jpg", "id": "1108196", "full_name": "Tod Maffin"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "chipi97", "profile_picture": "http://images.instagram.com/profiles/profile_2983884_75sq_1301842280.jpg", "id": "2983884", "full_name": ""}, {"username": "dan_brown", "profile_picture": "http://images.instagram.com/profiles/profile_4322352_75sq_1306266750.jpg", "id": "4322352", "full_name": "Daniel Brown \ue415"}, {"username": "rafaelrodrigues", "profile_picture": "http://images.instagram.com/profiles/profile_3228070_75sq_1305702541.jpg", "id": "3228070", "full_name": "Rafael Rodrigues"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/727be369fadf4c6ba74ce8a7c251c0fe_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/727be369fadf4c6ba74ce8a7c251c0fe_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/727be369fadf4c6ba74ce8a7c251c0fe_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306878642", "text": "This is what you wish you had for lunch. ", "from": {"username": "l0ckergn0me", "bio": "Geek. ", "profile_picture": "http://images.instagram.com/profiles/profile_1927302_75sq_1302394666.jpg", "id": "1927302", "full_name": "Chris \ue105 Pirillo"}, "id": "105597948"}, "user_has_liked": true, "id": "83877241", "user": {"username": "l0ckergn0me", "bio": "Geek. ", "profile_picture": "http://images.instagram.com/profiles/profile_1927302_75sq_1302394666.jpg", "id": "1927302", "full_name": "Chris \ue105 Pirillo"}}, {"tags": [], "type": "image", "location": {"latitude": 39.730330000000002, "longitude": -121.8601}, "comments": {"count": 0, "data": []}, "filter": "Earlybird", "created_time": "1305701931", "link": "http://instagr.am/p/EY1m6/", "likes": {"count": 2, "data": [{"username": "hibrenda", "profile_picture": "http://images.instagram.com/profiles/profile_3098371_75sq_1306972061.jpg", "id": "3098371", "full_name": "Brenda"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/17/376b1aadac02444bb3ebf8e60c184cfa_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/17/376b1aadac02444bb3ebf8e60c184cfa_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/17/376b1aadac02444bb3ebf8e60c184cfa_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1305701974", "text": "Naughty bits lounging", "from": {"username": "jmbrandt87", "bio": "", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "1971057", "full_name": ""}, "id": "92893917"}, "user_has_liked": true, "id": "73619898", "user": {"username": "jmbrandt87", "bio": "", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "1971057", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 39.756399999999999, "longitude": -121.7756}, "comments": {"count": 1, "data": [{"created_time": "1306858693", "text": "Chewy!", "from": {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, "id": "105379964"}]}, "filter": "Sutro", "created_time": "1306850473", "link": "http://instagr.am/p/E-_uP/", "likes": {"count": 9, "data": [{"username": "cassiesweeney", "profile_picture": "http://images.instagram.com/profiles/profile_1137873_75sq_1293162628.jpg", "id": "1137873", "full_name": ""}, {"username": "gabehawk", "profile_picture": "http://images.instagram.com/profiles/profile_820738_75sq_1292035867.jpg", "id": "820738", "full_name": "Gabe Velasquez"}, {"username": "yeahimlina", "profile_picture": "http://images.instagram.com/profiles/profile_1217546_75sq_1295211502.jpg", "id": "1217546", "full_name": "Sirimande \ue326"}, {"username": "mpakes", "profile_picture": "http://images.instagram.com/profiles/profile_76871_75sq_1304744584.jpg", "id": "76871", "full_name": "Matt Pakes"}, {"username": "jennimckiggan", "profile_picture": "http://images.instagram.com/profiles/profile_4496688_75sq_1306802224.jpg", "id": "4496688", "full_name": "Jenni McKiggan"}, {"username": "tylersmalley", "profile_picture": "http://images.instagram.com/profiles/profile_12452_75sq_1297402232.jpg", "id": "12452", "full_name": "Tyler Smalley"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "bswee", "profile_picture": "http://images.instagram.com/profiles/profile_752987_75sq_1298901191.jpg", "id": "752987", "full_name": "Britney Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/cf3e267079cb443ab97db7226503e4a9_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/cf3e267079cb443ab97db7226503e4a9_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/cf3e267079cb443ab97db7226503e4a9_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306850529", "text": "Bella doesn't want to wake up!!", "from": {"username": "gigisgr8", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_2076834_75sq_1298086390.jpg", "id": "2076834", "full_name": ""}, "id": "105271162"}, "user_has_liked": true, "id": "83622799", "user": {"username": "gigisgr8", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_2076834_75sq_1298086390.jpg", "id": "2076834", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 38.886229999999998, "longitude": -77.158540000000002}, "comments": {"count": 0, "data": []}, "filter": "Lomo-fi", "created_time": "1306850592", "link": "http://instagr.am/p/E_AAO/", "likes": {"count": 5, "data": [{"username": "zyuhas", "profile_picture": "http://images.instagram.com/profiles/profile_3114277_75sq_1306791749.jpg", "id": "3114277", "full_name": ""}, {"username": "forthy", "profile_picture": "http://images.instagram.com/profiles/profile_3880984_75sq_1305151452.jpg", "id": "3880984", "full_name": "Alex \u2729\u2605\u2729"}, {"username": "geektechlive", "profile_picture": "http://images.instagram.com/profiles/profile_2200078_75sq_1298671369.jpg", "id": "2200078", "full_name": "chris Favero"}, {"username": "jpixtimeee", "profile_picture": "http://images.instagram.com/profiles/profile_3603319_75sq_1305301068.jpg", "id": "3603319", "full_name": "Joey P"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/31/32ea0dfafe4042f8a46224768dcbb68b_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/31/32ea0dfafe4042f8a46224768dcbb68b_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/31/32ea0dfafe4042f8a46224768dcbb68b_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306850602", "text": "The train is empty. ", "from": {"username": "chriskbrown", "bio": "I carry at least 6 electronic devices with me at all times. ", "profile_picture": "http://images.instagram.com/profiles/profile_67554_75sq_1294206553.jpg", "id": "67554", "full_name": "Christopher Brown"}, "id": "105272146"}, "user_has_liked": true, "id": "83623950", "user": {"username": "chriskbrown", "bio": "I carry at least 6 electronic devices with me at all times. ", "profile_picture": "http://images.instagram.com/profiles/profile_67554_75sq_1294206553.jpg", "id": "67554", "full_name": "Christopher Brown"}}, {"tags": [], "type": "image", "location": {"latitude": 39.252589999999998, "longitude": -122.1825}, "comments": {"count": 2, "data": [{"created_time": "1306807407", "text": "Hawk and Rocky!", "from": {"username": "gigisgr8", "profile_picture": "http://images.instagram.com/profiles/profile_2076834_75sq_1298086390.jpg", "id": "2076834", "full_name": ""}, "id": "104895351"}, {"created_time": "1306894009", "text": "Pretty bird, pretty bird", "from": {"username": "linds__bauman", "profile_picture": "http://images.instagram.com/profiles/profile_2485780_75sq_1302638039.jpg", "id": "2485780", "full_name": "Lindsey Bauman"}, "id": "105784232"}]}, "filter": "Nashville", "created_time": "1306796812", "link": null, "likes": {"count": 7, "data": [{"username": "linds__bauman", "profile_picture": "http://images.instagram.com/profiles/profile_2485780_75sq_1302638039.jpg", "id": "2485780", "full_name": "Lindsey Bauman"}, {"username": "k_ladyhawk", "profile_picture": "http://images.instagram.com/profiles/profile_820795_75sq_1294676559.jpg", "id": "820795", "full_name": "Kristi Velasquez"}, {"username": "kvstat", "profile_picture": "http://images.instagram.com/profiles/profile_911051_75sq_1302023131.jpg", "id": "911051", "full_name": "Kimberli Velasquez"}, {"username": "mpakes", "profile_picture": "http://images.instagram.com/profiles/profile_76871_75sq_1304744584.jpg", "id": "76871", "full_name": "Matt Pakes"}, {"username": "bswee", "profile_picture": "http://images.instagram.com/profiles/profile_752987_75sq_1298901191.jpg", "id": "752987", "full_name": "Britney Sweeney"}, {"username": "gabehawk", "profile_picture": "http://images.instagram.com/profiles/profile_820738_75sq_1292035867.jpg", "id": "820738", "full_name": "Gabe Velasquez"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/30/c9125a2e8f6c4d158d38916b0a3ecfcd_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/30/c9125a2e8f6c4d158d38916b0a3ecfcd_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/30/c9125a2e8f6c4d158d38916b0a3ecfcd_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306796858", "text": "Petey!", "from": {"username": "k_ladyhawk", "profile_picture": "http://images.instagram.com/profiles/profile_820795_75sq_1294676559.jpg", "id": "820795", "full_name": "Kristi Velasquez"}, "id": "104761271"}, "user_has_liked": true, "id": "83214713", "user": {"username": "k_ladyhawk", "profile_picture": "http://images.instagram.com/profiles/profile_820795_75sq_1294676559.jpg", "id": "820795", "full_name": "Kristi Velasquez"}}, {"tags": [], "type": "image", "location": {"latitude": 38.984549999999999, "longitude": -121.30410000000001}, "comments": {"count": 1, "data": [{"created_time": "1306804784", "text": "Great pic!", "from": {"username": "matt_marcum", "profile_picture": "http://images.instagram.com/profiles/profile_961914_75sq_1301522827.jpg", "id": "961914", "full_name": "Matt Marcum"}, "id": "104862373"}]}, "filter": "Hefe", "created_time": "1306788926", "link": "http://instagr.am/p/E9GGZ/", "likes": {"count": 5, "data": [{"username": "mizfallon", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "3960883", "full_name": ""}, {"username": "furreen", "profile_picture": "http://images.instagram.com/profiles/profile_3973756_75sq_1306913510.jpg", "id": "3973756", "full_name": ""}, {"username": "jberg", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}, {"username": "sadiqbello", "profile_picture": "http://images.instagram.com/profiles/profile_3525196_75sq_1306611157.jpg", "id": "3525196", "full_name": "Sadiq Bello"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/30/30a67217f4844290b8e61e80709eb7de_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/30/30a67217f4844290b8e61e80709eb7de_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/30/30a67217f4844290b8e61e80709eb7de_7.jpg", "width": 612, "height": 612}}, "caption": null, "user_has_liked": true, "id": "83124633", "user": {"username": "jberg", "profile_picture": "http://images.instagram.com/profiles/profile_608726_75sq_1306478857.jpg", "id": "608726", "full_name": "Justin Bergson"}}, {"tags": [], "type": "image", "location": {"latitude": 39.739519999999999, "longitude": -121.87050000000001}, "comments": {"count": 0, "data": []}, "filter": "Hefe", "created_time": "1306720526", "link": "http://instagr.am/p/E6s-y/", "likes": {"count": 2, "data": [{"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "ericmichaels", "profile_picture": "http://images.instagram.com/profiles/profile_334150_75sq_1292297505.jpg", "id": "334150", "full_name": "Eric Michaels"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/29/71436d80c9894a9c98a9380c33087cff_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/29/71436d80c9894a9c98a9380c33087cff_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/29/71436d80c9894a9c98a9380c33087cff_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306720538", "text": "Afternoon water balloon fight", "from": {"username": "cassiesweeney", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_1137873_75sq_1293162628.jpg", "id": "1137873", "full_name": ""}, "id": "103903988"}, "user_has_liked": true, "id": "82497458", "user": {"username": "cassiesweeney", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_1137873_75sq_1293162628.jpg", "id": "1137873", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 37.79992, "longitude": -122.4378}, "comments": {"count": 13, "data": [{"created_time": "1306737116", "text": "Where to get this, is a question currently on my mind.", "from": {"username": "nickthedude", "profile_picture": "http://images.instagram.com/profiles/profile_4063547_75sq_1306129742.jpg", "id": "4063547", "full_name": "Nick Iannone"}, "id": "104088624"}, {"created_time": "1306739038", "text": "You can get it on tap in bars in Australia.", "from": {"username": "samlyne", "profile_picture": "http://images.instagram.com/profiles/profile_290068_75sq_1301875469.jpg", "id": "290068", "full_name": "Sam Lyne"}, "id": "104105346"}, {"created_time": "1306742117", "text": "That's a Japanese beer, right? You should drink it on Diggnation!", "from": {"username": "tucker", "profile_picture": "http://images.instagram.com/profiles/profile_6348_75sq_1287972238.jpg", "id": "6348", "full_name": "Tucker Weinmann"}, "id": "104130682"}, {"created_time": "1306752103", "text": "Hitachino is some of the best beer you can buy.", "from": {"username": "jamestobin", "profile_picture": "http://images.instagram.com/profiles/profile_84044_75sq_1287435702.jpg", "id": "84044", "full_name": "James Tobin"}, "id": "104214662"}, {"created_time": "1306752332", "text": "Haha thats funny, I uploaded a pic of Ginger beer yesterday :)", "from": {"username": "7ewis", "profile_picture": "http://images.instagram.com/profiles/profile_2657543_75sq_1306695198.jpg", "id": "2657543", "full_name": "Lewis Lebentz"}, "id": "104216723"}, {"created_time": "1306759164", "text": "\ue00e\u65e5\u7acb\u306e\u30cd\u30b9\u30c8", "from": {"username": "erinj1977", "profile_picture": "http://images.instagram.com/profiles/profile_2221872_75sq_1303863159.jpg", "id": "2221872", "full_name": ""}, "id": "104288014"}, {"created_time": "1306764873", "text": "That's my favorite of the Hitachino. They're an expensive import and I don't feel the others live up to the expense.", "from": {"username": "hexopod", "profile_picture": "http://images.instagram.com/profiles/profile_1847_75sq_1286462177.jpg", "id": "1847", "full_name": "Matt Welsh"}, "id": "104361257"}, {"created_time": "1306771150", "text": "Sweet! Love #ginger", "from": {"username": "youngdealz", "profile_picture": "http://images.instagram.com/profiles/profile_1480747_75sq_1300482759.jpg", "id": "1480747", "full_name": "John Bare"}, "id": "104448064"}]}, "filter": "Lomo-fi", "created_time": "1306724568", "link": "http://instagr.am/p/E63dD/", "likes": {"count": 89, "data": [{"username": "ryanvance", "profile_picture": "http://images.instagram.com/profiles/profile_247144_75sq_1298829019.jpg", "id": "247144", "full_name": "Ryan Vance"}, {"username": "lokified", "profile_picture": "http://images.instagram.com/profiles/profile_308136_75sq_1301011169.jpg", "id": "308136", "full_name": "Lucas Brown"}, {"username": "kellypodz", "profile_picture": "http://images.instagram.com/profiles/profile_373166_75sq_1305323407.jpg", "id": "373166", "full_name": "Kelly Podzemny"}, {"username": "jessverr", "profile_picture": "http://images.instagram.com/profiles/profile_91608_75sq_1294337432.jpg", "id": "91608", "full_name": "Jessica Verrilli"}, {"username": "moonshinedesign", "profile_picture": "http://images.instagram.com/profiles/profile_167049_75sq_1306824179.jpg", "id": "167049", "full_name": "Adrienne Levin"}, {"username": "mikey_likes_it", "profile_picture": "http://images.instagram.com/profiles/profile_396044_75sq_1288765984.jpg", "id": "396044", "full_name": "Michael H"}, {"username": "ryaniak", "profile_picture": "http://images.instagram.com/profiles/profile_279911_75sq_1304191550.jpg", "id": "279911", "full_name": "Ryaniak"}, {"username": "indiangirl", "profile_picture": "http://images.instagram.com/profiles/profile_1349271_75sq_1302593038.jpg", "id": "1349271", "full_name": "Prathu"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/29/966f6e9729224a139038f7eb0c48f3d0_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/29/966f6e9729224a139038f7eb0c48f3d0_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/29/966f6e9729224a139038f7eb0c48f3d0_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306724574", "text": "Real Ginger beer, amazing!!", "from": {"username": "kevinrose", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_124163_75sq_1287092509.jpg", "id": "124163", "full_name": "Kevin Rose \ue10b"}, "id": "103951366"}, "user_has_liked": true, "id": "82540355", "user": {"username": "kevinrose", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_124163_75sq_1287092509.jpg", "id": "124163", "full_name": "Kevin Rose \ue10b"}}, {"tags": [], "type": "image", "location": {"latitude": 37.771590000000003, "longitude": -122.45010000000001}, "comments": {"count": 2, "data": [{"created_time": "1306728491", "text": "yah! motorcycle time.", "from": {"username": "cordeliam", "profile_picture": "http://images.instagram.com/profiles/profile_911257_75sq_1302724918.jpg", "id": "911257", "full_name": "Cordelia Miller"}, "id": "103999390"}, {"created_time": "1306729182", "text": "M2 is way better.", "from": {"username": "mh", "profile_picture": "http://images.instagram.com/profiles/profile_5548_75sq_1305604216.jpg", "id": "5548", "full_name": "matt hunter"}, "id": "104007580"}]}, "filter": "X-Pro II", "created_time": "1306726941", "link": "http://instagr.am/p/E69pM/", "likes": {"count": 12, "data": [{"username": "daryapino", "profile_picture": "http://images.instagram.com/profiles/profile_325120_75sq_1288328126.jpg", "id": "325120", "full_name": "Darya Pino"}, {"username": "littlemissnina", "profile_picture": "http://images.instagram.com/profiles/profile_1829066_75sq_1301676157.jpg", "id": "1829066", "full_name": ""}, {"username": "nataliaenvy", "profile_picture": "http://images.instagram.com/profiles/profile_474816_75sq_1303338783.jpg", "id": "474816", "full_name": "Natalia Villalobos"}, {"username": "thejana", "profile_picture": "http://images.instagram.com/profiles/profile_69080_75sq_1303310849.jpg", "id": "69080", "full_name": "The Jana"}, {"username": "cordeliam", "profile_picture": "http://images.instagram.com/profiles/profile_911257_75sq_1302724918.jpg", "id": "911257", "full_name": "Cordelia Miller"}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "scapegoat", "profile_picture": "http://images.instagram.com/profiles/profile_35334_75sq_1297717281.jpg", "id": "35334", "full_name": "Amelia Mendez"}, {"username": "bmull", "profile_picture": "http://images.instagram.com/profiles/profile_42755_75sq_1290738384.jpg", "id": "42755", "full_name": "Brenden Mulligan"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/29/07ba9246281f4bd2b443e654e55ee9de_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/29/07ba9246281f4bd2b443e654e55ee9de_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/29/07ba9246281f4bd2b443e654e55ee9de_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306726954", "text": "M1 baby!!!", "from": {"username": "jeffhodsdon", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_123663_75sq_1291327014.jpg", "id": "123663", "full_name": "Jeff Hodsdon"}, "id": "103980336"}, "user_has_liked": true, "id": "82565708", "user": {"username": "jeffhodsdon", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_123663_75sq_1291327014.jpg", "id": "123663", "full_name": "Jeff Hodsdon"}}, {"tags": [], "type": "image", "location": {"latitude": 34.008422440982628, "name": "Santa Monica Pier", "longitude": -118.49856197834011, "id": 3001340}, "comments": {"count": 1, "data": [{"created_time": "1306643278", "text": "@tylersmalley", "from": {"username": "drewhart", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "3287562", "full_name": ""}, "id": "102994461"}]}, "filter": "X-Pro II", "created_time": "1306642853", "link": "http://instagr.am/p/E3h5q/", "likes": {"count": 1, "data": [{"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/28/da632080ac314e6ab7a1358d00b15f86_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/28/da632080ac314e6ab7a1358d00b15f86_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/28/da632080ac314e6ab7a1358d00b15f86_7.jpg", "width": 612, "height": 612}}, "caption": null, "user_has_liked": true, "id": "81665642", "user": {"username": "drewhart", "profile_picture": "http://images.instagram.com/profiles/anonymousUser.jpg", "id": "3287562", "full_name": ""}}, {"tags": [], "type": "image", "location": {"latitude": 38.682896772791437, "name": "Kirkwood Mountain Resort", "longitude": -120.0712966918945, "id": 218360}, "comments": {"count": 4, "data": [{"created_time": "1306640107", "text": "Dude. It's not even sticking to your trees all the way down south there! #northshoreforlife", "from": {"username": "sacca", "profile_picture": "http://images.instagram.com/profiles/profile_221307_75sq_1287732175.jpg", "id": "221307", "full_name": "Chris Sacca"}, "id": "102955632"}, {"created_time": "1306640298", "text": "To raise me, you have to have more snow:)", "from": {"username": "crystale", "profile_picture": "http://images.instagram.com/profiles/profile_564608_75sq_1289727266.jpg", "id": "564608", "full_name": ""}, "id": "102957992"}, {"created_time": "1306656928", "text": "Jealous. Gorgeous. Miss Kirky.", "from": {"username": "tommyrusso", "profile_picture": "http://images.instagram.com/profiles/profile_3568828_75sq_1304312610.jpg", "id": "3568828", "full_name": "Tommy Russo"}, "id": "103137738"}, {"created_time": "1306680273", "text": "Excellent!!", "from": {"username": "salomaa", "profile_picture": "http://images.instagram.com/profiles/profile_680600_75sq_1305990260.jpg", "id": "680600", "full_name": "Jari Salomaa"}, "id": "103400239"}]}, "filter": "Lomo-fi", "created_time": "1306635796", "link": "http://instagr.am/p/E3ONy/", "likes": {"count": 11, "data": [{"username": "mohdabdurraafay", "profile_picture": "http://images.instagram.com/profiles/profile_966_75sq_1293454543.jpg", "id": "966", "full_name": "Mohammad Abdurraafay"}, {"username": "crystale", "profile_picture": "http://images.instagram.com/profiles/profile_564608_75sq_1289727266.jpg", "id": "564608", "full_name": ""}, {"username": "shayne", "profile_picture": "http://images.instagram.com/profiles/profile_20_75sq_1306092173.jpg", "id": "20", "full_name": "Shayne Sweeney"}, {"username": "narendra", "profile_picture": "http://images.instagram.com/profiles/profile_18887_75sq_1286474873.jpg", "id": "18887", "full_name": "Narendra Rocherolle"}, {"username": "slobotski", "profile_picture": "http://images.instagram.com/profiles/profile_8994_75sq_1288728072.jpg", "id": "8994", "full_name": "Jeff Slobotski"}, {"username": "chudson", "profile_picture": "http://images.instagram.com/profiles/profile_73500_75sq_1292478812.jpg", "id": "73500", "full_name": "Charles Hudson"}, {"username": "slashsimon", "profile_picture": "http://images.instagram.com/profiles/profile_6843_75sq_1286498924.jpg", "id": "6843", "full_name": "Alan Simon"}, {"username": "dshanahan", "profile_picture": "http://images.instagram.com/profiles/profile_2812629_75sq_1305342035.jpg", "id": "2812629", "full_name": "Derek Shanahan"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/28/24a3026dff164b37aaf3178261102eaf_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/28/24a3026dff164b37aaf3178261102eaf_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/28/24a3026dff164b37aaf3178261102eaf_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306635817", "text": "Raising you @crystale ;-P", "from": {"username": "jeffclavier", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_343448_75sq_1288434597.jpg", "id": "343448", "full_name": "Jeff Clavier"}, "id": "102900576"}, "user_has_liked": true, "id": "81585010", "user": {"username": "jeffclavier", "bio": "", "profile_picture": "http://images.instagram.com/profiles/profile_343448_75sq_1288434597.jpg", "id": "343448", "full_name": "Jeff Clavier"}}, {"tags": ["friendportraits"], "type": "image", "location": {"latitude": 37.274582000000002, "name": "Cooper garrod winery", "longitude": -122.05988600000001, "id": 1076677}, "comments": {"count": 10, "data": [{"created_time": "1306630163", "text": "Cool shot", "from": {"username": "down_under", "profile_picture": "http://images.instagram.com/profiles/profile_1307126_75sq_1294014762.jpg", "id": "1307126", "full_name": "Richard"}, "id": "102830538"}, {"created_time": "1306631858", "text": "Gorgeous colours!", "from": {"username": "lilbluexox", "profile_picture": "http://images.instagram.com/profiles/profile_1115210_75sq_1299575900.jpg", "id": "1115210", "full_name": "LJ"}, "id": "102851281"}, {"created_time": "1306634388", "text": "Cooper! The pilot! The reserve is worth it!", "from": {"username": "doug", "profile_picture": "http://images.instagram.com/profiles/profile_17_75sq_1292890348.jpg", "id": "17", "full_name": "Doug Systrom"}, "id": "102882687"}, {"created_time": "1306636452", "text": "Erin is so beautiful!", "from": {"username": "hilary1211", "profile_picture": "http://images.instagram.com/profiles/profile_85730_75sq_1289364395.jpg", "id": "85730", "full_name": "Hilary Price"}, "id": "102908887"}, {"created_time": "1306636620", "text": "Nice and dramatic", "from": {"username": "prince_of_funk", "profile_picture": "http://images.instagram.com/profiles/profile_3708911_75sq_1305363915.jpg", "id": "3708911", "full_name": "Andhika Gautama"}, "id": "102911125"}, {"created_time": "1306636643", "text": "And @erindanika and @bevprice Looks like Grandpap", "from": {"username": "hilary1211", "profile_picture": "http://images.instagram.com/profiles/profile_85730_75sq_1289364395.jpg", "id": "85730", "full_name": "Hilary Price"}, "id": "102911435"}, {"created_time": "1306645420", "text": "Woooooooooooo", "from": {"username": "mariesprite", "profile_picture": "http://images.instagram.com/profiles/profile_4355339_75sq_1306354983.jpg", "id": "4355339", "full_name": ""}, "id": "103019199"}, {"created_time": "1306645750", "text": "Great colors", "from": {"username": "brianpowell", "profile_picture": "http://images.instagram.com/profiles/profile_2920179_75sq_1301605454.jpg", "id": "2920179", "full_name": "Brian Powell"}, "id": "103022957"}]}, "filter": "Normal", "created_time": "1306621559", "link": "http://instagr.am/p/E2ml3/", "likes": {"count": 332, "data": [{"username": "patrickxjonathan", "profile_picture": "http://images.instagram.com/profiles/profile_778502_75sq_1305938088.jpg", "id": "778502", "full_name": "Patrick Curley"}, {"username": "bienardo", "profile_picture": "http://images.instagram.com/profiles/profile_1734749_75sq_1306900665.jpg", "id": "1734749", "full_name": "Ben Llaneta"}, {"username": "kelgdun", "profile_picture": "http://images.instagram.com/profiles/profile_1293374_75sq_1300419858.jpg", "id": "1293374", "full_name": "Six Different Ways"}, {"username": "josh", "profile_picture": "http://images.instagram.com/profiles/profile_33_75sq_1305774118.jpg", "id": "33", "full_name": "Josh Riedel"}, {"username": "sheena1123", "profile_picture": "http://images.instagram.com/profiles/profile_1645950_75sq_1306224606.jpg", "id": "1645950", "full_name": "\ue20cSheena\ue20c"}, {"username": "louiemoschell", "profile_picture": "http://images.instagram.com/profiles/profile_1024835_75sq_1305251752.jpg", "id": "1024835", "full_name": "Louie Moschell"}, {"username": "notorioususb", "profile_picture": "http://images.instagram.com/profiles/profile_70172_75sq_1286747095.jpg", "id": "70172", "full_name": "Brian Benitez"}, {"username": "katherinavang", "profile_picture": "http://images.instagram.com/profiles/profile_2374442_75sq_1306863779.jpg", "id": "2374442", "full_name": "KV maivab"}]}, "images": {"low_resolution": {"url": "http://images.instagram.com/media/2011/05/28/1c56ec687d4f4e1b99e89eccaad2cdaa_6.jpg", "width": 306, "height": 306}, "thumbnail": {"url": "http://images.instagram.com/media/2011/05/28/1c56ec687d4f4e1b99e89eccaad2cdaa_5.jpg", "width": 150, "height": 150}, "standard_resolution": {"url": "http://images.instagram.com/media/2011/05/28/1c56ec687d4f4e1b99e89eccaad2cdaa_7.jpg", "width": 612, "height": 612}}, "caption": {"created_time": "1306621569", "text": "@erindanika is dating @josh - she was also a barista at blue bottle and now works at one kings lane #friendportraits", "from": {"username": "kevin", "bio": "CEO & Co-founder of Instagram", "profile_picture": "http://images.instagram.com/profiles/profile_3_75sq_1306653130.jpg", "id": "3", "full_name": "Kevin Systrom"}, "id": "102729910"}, "user_has_liked": true, "id": "81422711", "user": {"username": "kevin", "bio": "CEO & Co-founder of Instagram", "profile_picture": "http://images.instagram.com/profiles/profile_3_75sq_1306653130.jpg", "id": "3", "full_name": "Kevin Systrom"}}]}
@@ -170,6 +170,22 @@ describe Instagram::Client do
170
170
  end
171
171
  end
172
172
 
173
+ describe ".user_liked_media" do
174
+
175
+ before do
176
+ stub_get("users/self/media/liked.#{format}").
177
+ with(:query => {:access_token => @client.access_token}).
178
+ to_return(:body => fixture("liked_media.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
179
+ end
180
+
181
+ it "should get the correct resource" do
182
+ @client.user_liked_media
183
+ a_get("users/self/media/liked.#{format}").
184
+ with(:query => {:access_token => @client.access_token}).
185
+ should have_been_made
186
+ end
187
+ end
188
+
173
189
  describe ".user_recent_media" do
174
190
 
175
191
  context "with user ID passed" do
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,13 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_group 'Instagram', 'lib/instagram'
4
- add_group 'Faraday Middleware', 'lib/faraday'
5
- add_group 'Specs', 'spec'
1
+ begin
2
+ require 'simplecov'
3
+ rescue LoadError
4
+ # ignore
5
+ else
6
+ SimpleCov.start do
7
+ add_group 'Instagram', 'lib/instagram'
8
+ add_group 'Faraday Middleware', 'lib/faraday'
9
+ add_group 'Specs', 'spec'
10
+ end
6
11
  end
7
12
 
8
13
  require File.expand_path('../../lib/instagram', __FILE__)
metadata CHANGED
@@ -4,9 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 6
8
- - 2
9
- version: 0.6.2
7
+ - 7
8
+ version: "0.7"
10
9
  platform: ruby
11
10
  authors:
12
11
  - Shayne Sweeney
@@ -14,40 +13,13 @@ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
15
 
17
- date: 2011-05-09 00:00:00 -07:00
16
+ date: 2011-06-02 00:00:00 -07:00
18
17
  default_executable:
19
18
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: bundler
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- version: "1.0"
31
- type: :development
32
- prerelease: false
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rake
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 8
44
- version: "0.8"
45
- type: :development
46
- prerelease: false
47
- version_requirements: *id002
48
19
  - !ruby/object:Gem::Dependency
49
20
  name: rspec
50
- requirement: &id003 !ruby/object:Gem::Requirement
21
+ prerelease: false
22
+ requirement: &id001 !ruby/object:Gem::Requirement
51
23
  none: false
52
24
  requirements:
53
25
  - - ~>
@@ -57,39 +29,11 @@ dependencies:
57
29
  - 4
58
30
  version: "2.4"
59
31
  type: :development
60
- prerelease: false
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: yard
64
- requirement: &id004 !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- - 6
72
- version: "0.6"
73
- type: :development
74
- prerelease: false
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: simplecov
78
- requirement: &id005 !ruby/object:Gem::Requirement
79
- none: false
80
- requirements:
81
- - - ~>
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 0
85
- - 3
86
- version: "0.3"
87
- type: :development
88
- prerelease: false
89
- version_requirements: *id005
32
+ version_requirements: *id001
90
33
  - !ruby/object:Gem::Dependency
91
34
  name: webmock
92
- requirement: &id006 !ruby/object:Gem::Requirement
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
93
37
  none: false
94
38
  requirements:
95
39
  - - ~>
@@ -99,25 +43,11 @@ dependencies:
99
43
  - 6
100
44
  version: "1.6"
101
45
  type: :development
102
- prerelease: false
103
- version_requirements: *id006
104
- - !ruby/object:Gem::Dependency
105
- name: ZenTest
106
- requirement: &id007 !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- segments:
112
- - 4
113
- - 4
114
- version: "4.4"
115
- type: :development
116
- prerelease: false
117
- version_requirements: *id007
46
+ version_requirements: *id002
118
47
  - !ruby/object:Gem::Dependency
119
48
  name: bluecloth
120
- requirement: &id008 !ruby/object:Gem::Requirement
49
+ prerelease: false
50
+ requirement: &id003 !ruby/object:Gem::Requirement
121
51
  none: false
122
52
  requirements:
123
53
  - - ~>
@@ -128,11 +58,11 @@ dependencies:
128
58
  - 11
129
59
  version: 2.0.11
130
60
  type: :development
131
- prerelease: false
132
- version_requirements: *id008
61
+ version_requirements: *id003
133
62
  - !ruby/object:Gem::Dependency
134
63
  name: faraday
135
- requirement: &id009 !ruby/object:Gem::Requirement
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
136
66
  none: false
137
67
  requirements:
138
68
  - - ~>
@@ -143,11 +73,11 @@ dependencies:
143
73
  - 4
144
74
  version: 0.5.4
145
75
  type: :runtime
146
- prerelease: false
147
- version_requirements: *id009
76
+ version_requirements: *id004
148
77
  - !ruby/object:Gem::Dependency
149
78
  name: faraday_middleware
150
- requirement: &id010 !ruby/object:Gem::Requirement
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
151
81
  none: false
152
82
  requirements:
153
83
  - - ~>
@@ -158,11 +88,11 @@ dependencies:
158
88
  - 1
159
89
  version: 0.3.1
160
90
  type: :runtime
161
- prerelease: false
162
- version_requirements: *id010
91
+ version_requirements: *id005
163
92
  - !ruby/object:Gem::Dependency
164
93
  name: multi_json
165
- requirement: &id011 !ruby/object:Gem::Requirement
94
+ prerelease: false
95
+ requirement: &id006 !ruby/object:Gem::Requirement
166
96
  none: false
167
97
  requirements:
168
98
  - - ~>
@@ -173,23 +103,22 @@ dependencies:
173
103
  - 5
174
104
  version: 0.0.5
175
105
  type: :runtime
176
- prerelease: false
177
- version_requirements: *id011
106
+ version_requirements: *id006
178
107
  - !ruby/object:Gem::Dependency
179
108
  name: hashie
180
- requirement: &id012 !ruby/object:Gem::Requirement
109
+ prerelease: false
110
+ requirement: &id007 !ruby/object:Gem::Requirement
181
111
  none: false
182
112
  requirements:
183
- - - ~>
113
+ - - ">="
184
114
  - !ruby/object:Gem::Version
185
115
  segments:
186
- - 1
187
116
  - 0
117
+ - 4
188
118
  - 0
189
- version: 1.0.0
119
+ version: 0.4.0
190
120
  type: :runtime
191
- prerelease: false
192
- version_requirements: *id012
121
+ version_requirements: *id007
193
122
  description: A Ruby wrapper for the Instagram REST and Search APIs
194
123
  email:
195
124
  - shayne@instagr.am
@@ -238,6 +167,7 @@ files:
238
167
  - spec/fixtures/followed_by.json
239
168
  - spec/fixtures/follows.json
240
169
  - spec/fixtures/geography_recent_media.json
170
+ - spec/fixtures/liked_media.json
241
171
  - spec/fixtures/location.json
242
172
  - spec/fixtures/location_recent_media.json
243
173
  - spec/fixtures/location_search.json
@@ -302,7 +232,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
302
232
  requirements:
303
233
  - - ">="
304
234
  - !ruby/object:Gem::Version
305
- hash: -798514324542914506
306
235
  segments:
307
236
  - 0
308
237
  version: "0"
@@ -333,6 +262,7 @@ test_files:
333
262
  - spec/fixtures/followed_by.json
334
263
  - spec/fixtures/follows.json
335
264
  - spec/fixtures/geography_recent_media.json
265
+ - spec/fixtures/liked_media.json
336
266
  - spec/fixtures/location.json
337
267
  - spec/fixtures/location_recent_media.json
338
268
  - spec/fixtures/location_search.json