instagram-innonate 0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. data/.gitignore +12 -0
  2. data/.rspec +3 -0
  3. data/.yardopts +9 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE.md +20 -0
  6. data/README.md +144 -0
  7. data/Rakefile +27 -0
  8. data/instagram.gemspec +26 -0
  9. data/lib/faraday/oauth2.rb +36 -0
  10. data/lib/faraday/raise_http_4xx.rb +37 -0
  11. data/lib/faraday/raise_http_5xx.rb +29 -0
  12. data/lib/instagram.rb +26 -0
  13. data/lib/instagram/api.rb +23 -0
  14. data/lib/instagram/client.rb +20 -0
  15. data/lib/instagram/client/comments.rb +62 -0
  16. data/lib/instagram/client/geographies.rb +29 -0
  17. data/lib/instagram/client/likes.rb +58 -0
  18. data/lib/instagram/client/locations.rb +59 -0
  19. data/lib/instagram/client/media.rb +63 -0
  20. data/lib/instagram/client/subscriptions.rb +157 -0
  21. data/lib/instagram/client/tags.rb +59 -0
  22. data/lib/instagram/client/users.rb +309 -0
  23. data/lib/instagram/client/utils.rb +15 -0
  24. data/lib/instagram/configuration.rb +90 -0
  25. data/lib/instagram/connection.rb +31 -0
  26. data/lib/instagram/error.rb +19 -0
  27. data/lib/instagram/oauth.rb +27 -0
  28. data/lib/instagram/request.rb +45 -0
  29. data/lib/instagram/version.rb +3 -0
  30. data/spec/faraday/response_spec.rb +28 -0
  31. data/spec/fixtures/access_token.json +9 -0
  32. data/spec/fixtures/approve_user.json +8 -0
  33. data/spec/fixtures/block_user.json +8 -0
  34. data/spec/fixtures/deny_user.json +8 -0
  35. data/spec/fixtures/follow_user.json +8 -0
  36. data/spec/fixtures/followed_by.json +1 -0
  37. data/spec/fixtures/follows.json +1 -0
  38. data/spec/fixtures/geography_recent_media.json +1 -0
  39. data/spec/fixtures/liked_media.json +1 -0
  40. data/spec/fixtures/location.json +1 -0
  41. data/spec/fixtures/location_recent_media.json +1 -0
  42. data/spec/fixtures/location_search.json +1 -0
  43. data/spec/fixtures/media.json +1 -0
  44. data/spec/fixtures/media_comment.json +1 -0
  45. data/spec/fixtures/media_comment_deleted.json +1 -0
  46. data/spec/fixtures/media_comments.json +1 -0
  47. data/spec/fixtures/media_liked.json +1 -0
  48. data/spec/fixtures/media_likes.json +1 -0
  49. data/spec/fixtures/media_popular.json +1 -0
  50. data/spec/fixtures/media_search.json +1 -0
  51. data/spec/fixtures/media_unliked.json +1 -0
  52. data/spec/fixtures/mikeyk.json +1 -0
  53. data/spec/fixtures/recent_media.json +1 -0
  54. data/spec/fixtures/relationship.json +9 -0
  55. data/spec/fixtures/requested_by.json +12 -0
  56. data/spec/fixtures/shayne.json +1 -0
  57. data/spec/fixtures/subscription.json +12 -0
  58. data/spec/fixtures/subscription_deleted.json +1 -0
  59. data/spec/fixtures/subscription_payload.json +14 -0
  60. data/spec/fixtures/subscriptions.json +22 -0
  61. data/spec/fixtures/tag.json +1 -0
  62. data/spec/fixtures/tag_recent_media.json +1 -0
  63. data/spec/fixtures/tag_search.json +1 -0
  64. data/spec/fixtures/unblock_user.json +8 -0
  65. data/spec/fixtures/unfollow_user.json +8 -0
  66. data/spec/fixtures/user_media_feed.json +1 -0
  67. data/spec/fixtures/user_search.json +1 -0
  68. data/spec/instagram/api_spec.rb +110 -0
  69. data/spec/instagram/client/comments_spec.rb +71 -0
  70. data/spec/instagram/client/geography_spec.rb +37 -0
  71. data/spec/instagram/client/likes_spec.rb +66 -0
  72. data/spec/instagram/client/locations_spec.rb +78 -0
  73. data/spec/instagram/client/media_spec.rb +78 -0
  74. data/spec/instagram/client/subscriptions_spec.rb +148 -0
  75. data/spec/instagram/client/tags_spec.rb +78 -0
  76. data/spec/instagram/client/users_spec.rb +400 -0
  77. data/spec/instagram/client_spec.rb +23 -0
  78. data/spec/instagram_spec.rb +97 -0
  79. data/spec/spec_helper.rb +59 -0
  80. metadata +303 -0
@@ -0,0 +1 @@
1
+ {"meta": {"code": 200}, "data": {"description": null, "media_count": 6697, "name": "cat", "external_url": null}}
@@ -0,0 +1 @@
1
+ {"pagination": {"next_url": "http://api_privatebeta.instagr.am/api/v2/tags/cat/media/recent/?access_token=f59def8.001cde77128843169627c0308237bafa&max_id=13289272", "next_max_id": 13289272}, "meta": {"code": 200}, "data": [{"type": "image", "comments": [{"created_time": "2010-12-18T02:34:05+0000", "message": "Our new cat with Christian and his grandma. ", "from": {"username": "amandavan", "id": "443107"}, "id": "10124500"}, {"created_time": "2010-12-18T02:37:16+0000", "message": "Gorgeous shot. Loving each others company!", "from": {"username": "ajinnz", "id": "520533"}, "id": "10125060"}, {"created_time": "2010-12-18T03:16:05+0000", "message": "We rescued the cat from a shelter. It only had a few more days left to find a home. He is an adult cat that is very friendly.", "from": {"username": "amandavan", "id": "443107"}, "id": "10131737"}, {"created_time": "2010-12-18T03:23:16+0000", "message": "Sweet:)", "from": {"username": "attosa", "id": "499019"}, "id": "10133068"}, {"created_time": "2010-12-18T03:29:20+0000", "message": "素敵な時間!", "from": {"username": "naot", "id": "119160"}, "id": "10134162"}, {"created_time": "2010-12-18T03:31:14+0000", "message": "Sweet♥", "from": {"username": "paddington", "id": "297689"}, "id": "10134507"}, {"created_time": "2010-12-18T03:33:22+0000", "message": "Beautiful", "from": {"username": "blueclue", "id": "199292"}, "id": "10134879"}, {"created_time": "2010-12-18T04:05:29+0000", "message": "Made popular :) Congrats!", "from": {"username": "brevynsmommy", "id": "919940"}, "id": "10140543"}, {"created_time": "2010-12-18T04:20:58+0000", "message": "(=´∀`)人(´∀`=)", "from": {"username": "mayugonz", "id": "660351"}, "id": "10143131"}, {"created_time": "2010-12-18T04:37:39+0000", "message": "so sweet", "from": {"username": "chaolee", "id": "458637"}, "id": "10145908"}, {"created_time": "2010-12-18T05:43:19+0000", "message": "nice capture!", "from": {"username": "manorr", "id": "352000"}, "id": "10157195"}, {"created_time": "2010-12-18T07:33:43+0000", "message": "Lovely shot.", "from": {"username": "kidtechnical", "id": "981990"}, "id": "10175334"}, {"created_time": "2010-12-18T11:53:04+0000", "message": "So beauty-ful!", "from": {"username": "rss420", "id": "350879"}, "id": "10219843"}, {"created_time": "2010-12-19T03:44:45+0000", "message": "d(^_^o)", "from": {"username": "dhodhadhi", "id": "142482"}, "id": "10384408"}, {"created_time": "2010-12-19T22:09:12+0000", "message": "Aaaaww", "from": {"username": "brianng", "id": "10102"}, "id": "10595111"}, {"created_time": "2010-12-20T02:32:51+0000", "message": "Precious!", "from": {"username": "natalyj08", "id": "462833"}, "id": "10645980"}, {"created_time": "2010-12-20T07:56:15+0000", "message": "Luv it", "from": {"username": "indoazz", "id": "842666"}, "id": "10697595"}, {"created_time": "2010-12-23T07:33:46+0000", "message": "Lovely shot", "from": {"username": "gershwin", "id": "312872"}, "id": "11452636"}, {"created_time": "2011-02-02T01:20:05+0000", "message": "#love #cat", "from": {"username": "amandavan", "id": "443107"}, "id": "26229449"}], "caption": {"created_time": "2010-12-18T02:34:05+0000", "message": "Our new cat with Christian and his grandma. ", "from": {"username": "amandavan", "id": "443107"}, "id": "10124500"}, "like_count": 90, "link": "http://api_privatebeta.instagr.am/p/mQHc/", "user": {"username": "amandavan", "full_name": "", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_443107_75sq_1288981444.jpg", "id": "443107"}, "created_time": "2010-12-18T02:33:22+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/17/08752d7e680a44abb36495f8cf3f09f1_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/17/08752d7e680a44abb36495f8cf3f09f1_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/17/08752d7e680a44abb36495f8cf3f09f1_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "10027484", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T01:19:26+0000", "message": "お傾げ#cat", "from": {"username": "tenkao", "id": "114517"}, "id": "26229234"}], "caption": {"created_time": "2011-02-02T01:19:26+0000", "message": "お傾げ#cat", "from": {"username": "tenkao", "id": "114517"}, "id": "26229234"}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BVpbC/", "user": {"username": "tenkao", "full_name": "Tsutomu Hagiwara", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_114517_75sq_1287300118.jpg", "id": "114517"}, "created_time": "2011-02-02T01:18:39+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/67babf0994bd41f48717455a1ed645bf_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/67babf0994bd41f48717455a1ed645bf_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/67babf0994bd41f48717455a1ed645bf_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22451906", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T01:09:46+0000", "message": "Even cats blink in pictures. ", "from": {"username": "dmarkey", "id": "496759"}, "id": "26226075"}, {"created_time": "2011-02-02T01:16:40+0000", "message": "#cat", "from": {"username": "dmarkey", "id": "496759"}, "id": "26228267"}], "caption": {"created_time": "2011-02-02T01:09:46+0000", "message": "Even cats blink in pictures. ", "from": {"username": "dmarkey", "id": "496759"}, "id": "26226075"}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BVo8g/", "user": {"username": "dmarkey", "full_name": "Drew Markey", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_496759_75sq_1296534082.jpg", "id": "496759"}, "created_time": "2011-02-02T01:09:10+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/540c61429dba4ef198e99d91e0cefcca_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/540c61429dba4ef198e99d91e0cefcca_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/540c61429dba4ef198e99d91e0cefcca_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22449952", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T01:15:56+0000", "message": "Ursula the black. #dslr #nofilter", "from": {"username": "ciams", "id": "339307"}, "id": "26228009"}, {"created_time": "2011-02-02T01:16:21+0000", "message": "And #cat. ", "from": {"username": "ciams", "id": "339307"}, "id": "26228151"}], "caption": {"created_time": "2011-02-02T01:15:56+0000", "message": "Ursula the black. #dslr #nofilter", "from": {"username": "ciams", "id": "339307"}, "id": "26228009"}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BVpQR/", "user": {"username": "ciams", "full_name": "Ciam", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_339307_75sq_1295055035.jpg", "id": "339307"}, "created_time": "2011-02-02T01:15:26+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/583d4598747f4d44949dfb9a7bb66c34_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/583d4598747f4d44949dfb9a7bb66c34_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/583d4598747f4d44949dfb9a7bb66c34_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22451217", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T01:15:06+0000", "message": "ガラス越しのあなた #cat", "from": {"username": "sorateto", "id": "1407213"}, "id": "26227746"}], "caption": {"created_time": "2011-02-02T01:15:06+0000", "message": "ガラス越しのあなた #cat", "from": {"username": "sorateto", "id": "1407213"}, "id": "26227746"}, "like_count": 0, "link": "http://api_privatebeta.instagr.am/p/BVpNO/", "user": {"username": "sorateto", "full_name": "", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1407213_75sq_1295171266.jpg", "id": "1407213"}, "created_time": "2011-02-02T01:14:26+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/02b1810dfd744e1186e9d1c4c48d2e79_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/02b1810dfd744e1186e9d1c4c48d2e79_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/02b1810dfd744e1186e9d1c4c48d2e79_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22451022", "location": null}, {"type": "image", "comments": [{"created_time": "2011-01-27T17:48:00+0000", "message": "Midnight", "from": {"username": "samnands", "id": "1572362"}, "id": "23619719"}, {"created_time": "2011-02-02T01:03:12+0000", "message": "#midnight #cat #kitty #pet #animal #eyes", "from": {"username": "samnands", "id": "1572362"}, "id": "26223766"}], "caption": {"created_time": "2011-01-27T17:48:00+0000", "message": "Midnight", "from": {"username": "samnands", "id": "1572362"}, "id": "23619719"}, "like_count": 3, "link": "http://api_privatebeta.instagr.am/p/BPG_g/", "user": {"username": "samnands", "full_name": "Sam Fernandes", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1572362_75sq_1296598905.jpg", "id": "1572362"}, "created_time": "2011-01-27T17:47:58+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/27/d7056b7a0b094eb1bf8bcd27dcebef00_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/27/d7056b7a0b094eb1bf8bcd27dcebef00_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/27/d7056b7a0b094eb1bf8bcd27dcebef00_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "20738016", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T01:00:08+0000", "message": "#sleep #cat", "from": {"username": "super_mimi_", "id": "1721424"}, "id": "26222773"}], "caption": null, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BR_R3/", "user": {"username": "super_mimi_", "full_name": "Mimi ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1721424_75sq_1296492509.jpg", "id": "1721424"}, "created_time": "2011-01-30T00:16:02+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/29/bf7b4dd6aacd48be8ae74076c80d8752_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/29/bf7b4dd6aacd48be8ae74076c80d8752_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/29/bf7b4dd6aacd48be8ae74076c80d8752_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "21492855", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-29T02:52:01+0000", "message": "Beautiful lil friend!!", "from": {"username": "tashiko", "id": "889932"}, "id": "13086996"}, {"created_time": "2010-12-29T03:47:38+0000", "message": "I'm not a fan of cats, still like this shot a lot.", "from": {"username": "cryingjune", "id": "678148"}, "id": "13099247"}, {"created_time": "2010-12-29T10:15:32+0000", "message": "@cryingjune awww thanks heaps! ", "from": {"username": "tashiko", "id": "889932"}, "id": "13175014"}, {"created_time": "2011-02-02T00:43:33+0000", "message": "#Tashiko #cat #light #eye", "from": {"username": "tashiko", "id": "889932"}, "id": "26217211"}], "caption": {"created_time": "2010-12-29T02:52:01+0000", "message": "Beautiful lil friend!!", "from": {"username": "tashiko", "id": "889932"}, "id": "13086996"}, "like_count": 4, "link": "http://api_privatebeta.instagr.am/p/wUN_/", "user": {"username": "tashiko", "full_name": "", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_889932_75sq_1291277200.jpg", "id": "889932"}, "created_time": "2010-12-29T02:51:53+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/b8ff036f071c4ac4b8a66bea459eebf6_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/b8ff036f071c4ac4b8a66bea459eebf6_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/b8ff036f071c4ac4b8a66bea459eebf6_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "12665727", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T00:43:07+0000", "message": "#cat 's #eyes , #cateyes", "from": {"username": "camilletwentyseven", "id": "983122"}, "id": "26217085"}, {"created_time": "2011-02-02T01:19:29+0000", "message": "The Cats Eye! ;)", "from": {"username": "andy_warhol", "id": "1540858"}, "id": "26229252"}], "caption": {"created_time": "2011-02-02T00:43:07+0000", "message": "#cat 's #eyes , #cateyes", "from": {"username": "camilletwentyseven", "id": "983122"}, "id": "26217085"}, "like_count": 5, "link": "http://api_privatebeta.instagr.am/p/BVnlX/", "user": {"username": "camilletwentyseven", "full_name": "Camille ~ ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_983122_75sq_1296348573.jpg", "id": "983122"}, "created_time": "2011-02-02T00:42:50+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/1d7e99a9ae5145aabd68ffdeaa771698_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/1d7e99a9ae5145aabd68ffdeaa771698_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/1d7e99a9ae5145aabd68ffdeaa771698_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22444375", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-29T02:55:11+0000", "message": "", "from": {"username": "tashiko", "id": "889932"}, "id": "13087621"}, {"created_time": "2011-01-04T02:42:26+0000", "message": "So lovely!", "from": {"username": "taki17", "id": "411305"}, "id": "14977647"}, {"created_time": "2011-01-04T02:53:39+0000", "message": "@taki17 - I thought u might like these kitties!! ", "from": {"username": "tashiko", "id": "889932"}, "id": "14980241"}, {"created_time": "2011-01-04T03:06:08+0000", "message": "Ya I love it so much!", "from": {"username": "taki17", "id": "411305"}, "id": "14983160"}, {"created_time": "2011-02-02T00:42:18+0000", "message": "#Tashiko #cat #kitten", "from": {"username": "tashiko", "id": "889932"}, "id": "26216824"}], "caption": {"created_time": "2010-12-29T02:55:11+0000", "message": "", "from": {"username": "tashiko", "id": "889932"}, "id": "13087621"}, "like_count": 2, "link": "http://api_privatebeta.instagr.am/p/wUWU/", "user": {"username": "tashiko", "full_name": "", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_889932_75sq_1291277200.jpg", "id": "889932"}, "created_time": "2010-12-29T02:55:09+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/be01cefa28ee41b0beda68d4c249d514_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/be01cefa28ee41b0beda68d4c249d514_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/28/be01cefa28ee41b0beda68d4c249d514_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "12666260", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T00:33:51+0000", "message": "おはようございます(^_^)優雅なお目覚め、メイさんです♡", "from": {"username": "ayachimaru", "id": "1568922"}, "id": "26214037"}, {"created_time": "2011-02-02T00:34:16+0000", "message": "#cat", "from": {"username": "ayachimaru", "id": "1568922"}, "id": "26214171"}, {"created_time": "2011-02-02T00:39:32+0000", "message": "おはようございます( ´ ▽ ` )ノ 美人さんですね", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26215878"}], "caption": {"created_time": "2011-02-02T00:33:51+0000", "message": "おはようございます(^_^)優雅なお目覚め、メイさんです♡", "from": {"username": "ayachimaru", "id": "1568922"}, "id": "26214037"}, "like_count": 1, "link": "http://api_privatebeta.instagr.am/p/BVnHI/", "user": {"username": "ayachimaru", "full_name": "", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_1568922_75sq_1296342395.jpg", "id": "1568922"}, "created_time": "2011-02-02T00:33:10+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/8391c99328b04265b231065033dda4c7_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/8391c99328b04265b231065033dda4c7_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/02/01/8391c99328b04265b231065033dda4c7_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "22442440", "location": null}, {"type": "image", "comments": [{"created_time": "2011-01-20T12:00:25+0000", "message": "にゃーこも黄昏るんだよ。なら、わしら人間も黄昏れようよ。そんな急かせかしないでさ。", "from": {"username": "break08mia", "id": "212679"}, "id": "20755823"}, {"created_time": "2011-01-20T12:12:26+0000", "message": "のんびりニャー", "from": {"username": "inahoo", "id": "845707"}, "id": "20759132"}, {"created_time": "2011-01-20T12:15:36+0000", "message": "ほんとだ! 自分の時間って必要だよね。", "from": {"username": "genzo", "id": "231388"}, "id": "20760033"}, {"created_time": "2011-01-20T12:27:26+0000", "message": "今まさに黄昏てるよ。( ̄。 ̄*)ボ----------", "from": {"username": "kame_chi", "id": "144925"}, "id": "20763443"}, {"created_time": "2011-01-20T12:34:40+0000", "message": "( ´ ▽ ` )ノ", "from": {"username": "cfumi_loveyou", "id": "787830"}, "id": "20765579"}, {"created_time": "2011-01-20T12:49:43+0000", "message": "+。:.゚(* ゚A ゚*):.。+゚ぽけー", "from": {"username": "kikuji", "id": "141620"}, "id": "20769901"}, {"created_time": "2011-01-20T13:05:31+0000", "message": "うんうん♥ゆっくりまったりね。", "from": {"username": "aoi3179", "id": "589625"}, "id": "20774611"}, {"created_time": "2011-01-20T14:32:11+0000", "message": "いい構図!黄昏てますね〜♬こんな時間って大事だよなぁ〜", "from": {"username": "ebapi", "id": "257364"}, "id": "20801658"}, {"created_time": "2011-01-20T15:21:21+0000", "message": "コンスタントに黄昏ます(。-_-。)", "from": {"username": "dai_suke", "id": "124496"}, "id": "20817536"}, {"created_time": "2011-01-20T15:50:03+0000", "message": "Kawaiiii ", "from": {"username": "yuriko211", "id": "182316"}, "id": "20826471"}, {"created_time": "2011-01-20T15:52:18+0000", "message": "いいね。その感じ♪( ´▽`)そうでありたいな~♪", "from": {"username": "eri1982", "id": "748613"}, "id": "20827141"}, {"created_time": "2011-01-20T16:17:44+0000", "message": "ごもっとも(笑)", "from": {"username": "jyonzo", "id": "167443"}, "id": "20834724"}, {"created_time": "2011-01-20T17:32:05+0000", "message": "♪(´ε` )", "from": {"username": "1100211", "id": "211271"}, "id": "20854833"}, {"created_time": "2011-01-21T10:17:30+0000", "message": "@inahoo だにゃあー♥花金だあー♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21105445"}, {"created_time": "2011-01-21T10:18:03+0000", "message": "@genzo 時間を上手く使える人は大人だなあと思います!", "from": {"username": "break08mia", "id": "212679"}, "id": "21105569"}, {"created_time": "2011-01-21T10:18:33+0000", "message": "@kame_chi いいなw 私はこれから♥ひひひっ♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21105678"}, {"created_time": "2011-01-21T10:18:59+0000", "message": "@cfumi_loveyou いいでしょ?(o^^o)", "from": {"username": "break08mia", "id": "212679"}, "id": "21105783"}, {"created_time": "2011-01-21T10:19:17+0000", "message": "@kikuji 君もかいw", "from": {"username": "break08mia", "id": "212679"}, "id": "21105851"}, {"created_time": "2011-01-21T10:20:10+0000", "message": "@aoi3179 私の人生の大半はゆっくりまったりwそれでもなお、にゃーこが羨ましい♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21106040"}, {"created_time": "2011-01-21T10:21:19+0000", "message": "@ebapi そう見えますよね♥私も猫になったつもりで、本日のんびりさせていただきますw", "from": {"username": "break08mia", "id": "212679"}, "id": "21106290"}, {"created_time": "2011-01-21T10:21:55+0000", "message": "@dai_suke それ人生において、非常に大切なポイントだと思う!", "from": {"username": "break08mia", "id": "212679"}, "id": "21106439"}, {"created_time": "2011-01-21T10:22:38+0000", "message": "@yuriko211 にゃーこはいつも可愛くて羨ましいですね(´Д` )♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21106597"}, {"created_time": "2011-01-21T10:23:56+0000", "message": "@eri1982 なかなか黄昏れる余裕ないもんねー。生きづらいわっw今度一緒に黄昏ようー♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21106905"}, {"created_time": "2011-01-21T10:24:44+0000", "message": "@jyonzo そう思ってもらえて我輩うれしいにゃー♥", "from": {"username": "break08mia", "id": "212679"}, "id": "21107072"}, {"created_time": "2011-01-21T10:25:16+0000", "message": "@110211( *`ω´) ノ", "from": {"username": "break08mia", "id": "212679"}, "id": "21107188"}, {"created_time": "2011-01-23T01:38:33+0000", "message": "にゃーこと日向ぼっこもしたいにゃー(「ΦωΦ)♡", "from": {"username": "sakisugita", "id": "74513"}, "id": "21788864"}, {"created_time": "2011-01-23T03:12:49+0000", "message": "いい写真だな〜(^^)", "from": {"username": "respetar", "id": "237709"}, "id": "21818611"}, {"created_time": "2011-02-02T00:25:37+0000", "message": "#break08mia #cat", "from": {"username": "break08mia", "id": "212679"}, "id": "26211338"}], "caption": {"created_time": "2011-01-20T12:00:25+0000", "message": "にゃーこも黄昏るんだよ。なら、わしら人間も黄昏れようよ。そんな急かせかしないでさ。", "from": {"username": "break08mia", "id": "212679"}, "id": "20755823"}, "like_count": 77, "link": "http://api_privatebeta.instagr.am/p/BG82f/", "user": {"username": "break08mia", "full_name": "Tw:@ Mikan0range", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_212679_75sq_1288622923.jpg", "id": "212679"}, "created_time": "2011-01-20T11:58:58+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/20/e6fe0fb1ef944183a33f7862ef91cff1_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/20/e6fe0fb1ef944183a33f7862ef91cff1_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2011/01/20/e6fe0fb1ef944183a33f7862ef91cff1_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "18599327", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-19T13:43:36+0000", "message": "足が痺れた ㅠㅠ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "10500494"}, {"created_time": "2010-12-25T22:53:07+0000", "message": "この眼差しがいいですね☆(^^)", "from": {"username": "mayugonz", "id": "660351"}, "id": "12212162"}, {"created_time": "2011-02-02T00:25:21+0000", "message": "#orangetabby #orangecat #cat\n#kanchan", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26211246"}], "caption": {"created_time": "2010-12-19T13:43:36+0000", "message": "足が痺れた ㅠㅠ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "10500494"}, "like_count": 6, "link": "http://api_privatebeta.instagr.am/p/nklf/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-19T13:43:14+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/19/14620267e61e4fba8a49401f1257e7f3_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/19/14620267e61e4fba8a49401f1257e7f3_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/19/14620267e61e4fba8a49401f1257e7f3_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "10373471", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-26T06:21:07+0000", "message": "今日も なかよし", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12300004"}, {"created_time": "2010-12-26T12:06:39+0000", "message": "いい子だねー♥(^▿^。)", "from": {"username": "2120sma", "id": "196066"}, "id": "12359152"}, {"created_time": "2011-02-02T00:24:43+0000", "message": "#orangetabby #orangecat #cat\n#kanchan #taejakun", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26211020"}], "caption": {"created_time": "2010-12-26T06:21:07+0000", "message": "今日も なかよし", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12300004"}, "like_count": 7, "link": "http://api_privatebeta.instagr.am/p/toJt/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-26T06:20:51+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/64c1d4b0f8d64ef1a19903b56bef9b6a_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/64c1d4b0f8d64ef1a19903b56bef9b6a_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/64c1d4b0f8d64ef1a19903b56bef9b6a_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "11960941", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-26T06:24:00+0000", "message": "寒いねぇ 眠いねぇ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12300470"}, {"created_time": "2011-02-02T00:24:32+0000", "message": "#orangetabby #orangecat #cat\n#kanchan #taejakun", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210962"}], "caption": {"created_time": "2010-12-26T06:24:00+0000", "message": "寒いねぇ 眠いねぇ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12300470"}, "like_count": 6, "link": "http://api_privatebeta.instagr.am/p/toRk/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-26T06:23:33+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/191f3b2c7aeb446da7e01d4c813ea849_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/191f3b2c7aeb446da7e01d4c813ea849_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/191f3b2c7aeb446da7e01d4c813ea849_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "11961444", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-26T06:34:09+0000", "message": "むにゃむにゃ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12302175"}, {"created_time": "2011-02-02T00:24:20+0000", "message": "#orangetabby #orangecat #cat\n#kanchan #taejakun", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210893"}], "caption": {"created_time": "2010-12-26T06:34:09+0000", "message": "むにゃむにゃ", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "12302175"}, "like_count": 6, "link": "http://api_privatebeta.instagr.am/p/tove/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-26T06:34:07+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/8357d3db223e460ebe6c82f5c7f22083_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/8357d3db223e460ebe6c82f5c7f22083_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/25/8357d3db223e460ebe6c82f5c7f22083_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "11963358", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T00:24:08+0000", "message": "#orangetabby #orangecat #cat\n#kanchan", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210825"}], "caption": null, "like_count": 5, "link": "http://api_privatebeta.instagr.am/p/xSRh/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-30T03:21:55+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/f2be14b699904f359585098035afda2a_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/f2be14b699904f359585098035afda2a_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/f2be14b699904f359585098035afda2a_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "12919905", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-30T03:22:46+0000", "message": "大掃除が終わりません", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "13389363"}, {"created_time": "2011-02-02T00:23:54+0000", "message": "#orangetabby #orangecat #cat\n#kanchan", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210739"}], "caption": {"created_time": "2010-12-30T03:22:46+0000", "message": "大掃除が終わりません", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "13389363"}, "like_count": 7, "link": "http://api_privatebeta.instagr.am/p/xSTH/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-30T03:22:25+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/7ba3e40263444617a22510a1440e4768_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/7ba3e40263444617a22510a1440e4768_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/7ba3e40263444617a22510a1440e4768_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "12920007", "location": null}, {"type": "image", "comments": [{"created_time": "2010-12-30T03:34:23+0000", "message": "幸せそうv", "from": {"username": "usyako", "id": "300667"}, "id": "13391776"}, {"created_time": "2011-02-02T00:23:39+0000", "message": "#orangetabby #orangecat #cat\n#kanchan", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210658"}], "caption": null, "like_count": 6, "link": "http://api_privatebeta.instagr.am/p/xSZe/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-30T03:24:41+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/330ddc6c02504318ab5097ae2b3c0788_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/330ddc6c02504318ab5097ae2b3c0788_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/29/330ddc6c02504318ab5097ae2b3c0788_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "12920414", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T00:23:25+0000", "message": "#orangetabby #orangecat #cat\n#kanchan #taejakun", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210570"}], "caption": null, "like_count": 2, "link": "http://api_privatebeta.instagr.am/p/ysb4/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-31T12:22:46+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/4dd358aba2eb419b9bee64204af2e159_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/4dd358aba2eb419b9bee64204af2e159_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/4dd358aba2eb419b9bee64204af2e159_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "13289208", "location": null}, {"type": "image", "comments": [{"created_time": "2011-02-02T00:23:15+0000", "message": "#orangetabby #orangecat #cat\n#kanchan #taejakun", "from": {"username": "miyabiyaka", "id": "681498"}, "id": "26210504"}], "caption": null, "like_count": 5, "link": "http://api_privatebeta.instagr.am/p/ysc4/", "user": {"username": "miyabiyaka", "full_name": " Yuuka ", "profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_681498_75sq_1295987698.jpg", "id": "681498"}, "created_time": "2010-12-31T12:23:01+0000", "images": {"low_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/2726981bc6f5471ca680447980e64bdc_6.jpg", "width": 480, "height": 480}, "thumbnail": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/2726981bc6f5471ca680447980e64bdc_5.jpg", "width": 150, "height": 150}, "high_resolution": {"url": "http://distillery.s3.amazonaws.com/media/2010/12/31/2726981bc6f5471ca680447980e64bdc_7.jpg", "width": 612, "height": 612}}, "user_has_liked": false, "id": "13289272", "location": null}]}
@@ -0,0 +1 @@
1
+ {"meta": {"code": 200}, "data": [{"description": null, "media_count": 940, "name": "cats", "external_url": null}, {"description": null, "media_count": 5, "name": "catan", "external_url": null}, {"description": null, "media_count": 1, "name": "catch", "external_url": null}, {"description": null, "media_count": 6, "name": "catsg", "external_url": null}, {"description": null, "media_count": 2, "name": "catmug", "external_url": null}, {"description": null, "media_count": 1, "name": "cattoy", "external_url": null}, {"description": null, "media_count": 2, "name": "cattle", "external_url": null}, {"description": null, "media_count": 1, "name": "catlip", "external_url": null}, {"description": null, "media_count": 1, "name": "catwalk", "external_url": null}, {"description": null, "media_count": 55, "name": "catcafe", "external_url": null}, {"description": null, "media_count": 3, "name": "cateyes", "external_url": null}, {"description": null, "media_count": 2, "name": "catnews", "external_url": null}, {"description": null, "media_count": 1, "name": "catfail", "external_url": null}, {"description": null, "media_count": 6, "name": "catgirl", "external_url": null}, {"description": null, "media_count": 1, "name": "catchup", "external_url": null}, {"description": null, "media_count": 1, "name": "catyawn", "external_url": null}, {"description": null, "media_count": 1, "name": "catdang", "external_url": null}, {"description": null, "media_count": 3, "name": "catbath", "external_url": null}, {"description": null, "media_count": 5, "name": "catdong", "external_url": null}, {"description": null, "media_count": 1, "name": "catalog", "external_url": null}, {"description": null, "media_count": 1, "name": "catching", "external_url": null}, {"description": null, "media_count": 1, "name": "catscafe", "external_url": null}, {"description": null, "media_count": 2, "name": "catalina", "external_url": null}, {"description": null, "media_count": 1, "name": "catlanta", "external_url": null}, {"description": null, "media_count": 1, "name": "cattails", "external_url": null}, {"description": null, "media_count": 2, "name": "catering", "external_url": null}, {"description": null, "media_count": 6, "name": "catedral", "external_url": null}, {"description": null, "media_count": 1, "name": "catheads", "external_url": null}, {"description": null, "media_count": 11, "name": "catholic", "external_url": null}, {"description": null, "media_count": 57, "name": "catsrock", "external_url": null}, {"description": null, "media_count": 1, "name": "cattelan", "external_url": null}, {"description": null, "media_count": 9, "name": "catchico", "external_url": null}, {"description": null, "media_count": 55, "name": "cathedral", "external_url": null}, {"description": null, "media_count": 1, "name": "catacombs", "external_url": null}, {"description": null, "media_count": 1, "name": "cattweets", "external_url": null}, {"description": null, "media_count": 2, "name": "catalogue", "external_url": null}, {"description": null, "media_count": 1, "name": "catalonia", "external_url": null}, {"description": null, "media_count": 2, "name": "cat_fight", "external_url": null}, {"description": null, "media_count": 3, "name": "catalunya", "external_url": null}, {"description": null, "media_count": 7, "name": "cattitude", "external_url": null}, {"description": null, "media_count": 2, "name": "cathkidson", "external_url": null}, {"description": null, "media_count": 1, "name": "cathkidston", "external_url": null}, {"description": null, "media_count": 3, "name": "catmolester", "external_url": null}, {"description": null, "media_count": 9, "name": "caterpillar", "external_url": null}, {"description": null, "media_count": 1, "name": "catmomguilt", "external_url": null}, {"description": null, "media_count": 1, "name": "catinthehat", "external_url": null}, {"description": null, "media_count": 2, "name": "catscatscats", "external_url": null}, {"description": null, "media_count": 1, "name": "cataractgorge", "external_url": null}, {"description": null, "media_count": 5, "name": "cathedraloflearning", "external_url": null}, {"description": null, "media_count": 1, "name": "catalacorrectepassal", "external_url": null}]}
@@ -0,0 +1,8 @@
1
+ {
2
+ "meta": {
3
+ "code": 200
4
+ },
5
+ "data": {
6
+ "outgoing_status": "none"
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "meta": {
3
+ "code": 200
4
+ },
5
+ "data": {
6
+ "outgoing_status": "none"
7
+ }
8
+ }
@@ -0,0 +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}]}
@@ -0,0 +1 @@
1
+ {"meta": {"code": 200}, "data": [{"username": "shayne", "full_name": "Shayne Sweeney", "type": "user", "id": 20}]}
@@ -0,0 +1,110 @@
1
+ require File.expand_path('../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::API do
4
+ before do
5
+ @keys = Instagram::Configuration::VALID_OPTIONS_KEYS
6
+ end
7
+
8
+ context "with module configuration" do
9
+
10
+ before do
11
+ Instagram.configure do |config|
12
+ @keys.each do |key|
13
+ config.send("#{key}=", key)
14
+ end
15
+ end
16
+ end
17
+
18
+ after do
19
+ Instagram.reset
20
+ end
21
+
22
+ it "should inherit module configuration" do
23
+ api = Instagram::API.new
24
+ @keys.each do |key|
25
+ api.send(key).should == key
26
+ end
27
+ end
28
+
29
+ context "with class configuration" do
30
+
31
+ before do
32
+ @configuration = {
33
+ :client_id => 'CID',
34
+ :client_secret => 'CS',
35
+ :access_token => 'AT',
36
+ :adapter => :typhoeus,
37
+ :endpoint => 'http://tumblr.com/',
38
+ :format => :xml,
39
+ :proxy => 'http://shayne:sekret@proxy.example.com:8080',
40
+ :user_agent => 'Custom User Agent',
41
+ }
42
+ end
43
+
44
+ context "during initialization"
45
+
46
+ it "should override module configuration" do
47
+ api = Instagram::API.new(@configuration)
48
+ @keys.each do |key|
49
+ api.send(key).should == @configuration[key]
50
+ end
51
+ end
52
+
53
+ context "after initilization" do
54
+
55
+ it "should override module configuration after initialization" do
56
+ api = Instagram::API.new
57
+ @configuration.each do |key, value|
58
+ api.send("#{key}=", value)
59
+ end
60
+ @keys.each do |key|
61
+ api.send(key).should == @configuration[key]
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+
68
+ describe ".authorize_url" do
69
+
70
+ it "should generate an authorize URL with necessary params" do
71
+ params = { :client_id => "CID", :client_secret => "CS" }
72
+
73
+ client = Instagram::Client.new(params)
74
+
75
+ redirect_uri = 'http://localhost:4567/oauth/callback'
76
+ url = client.authorize_url(:redirect_uri => redirect_uri)
77
+
78
+ params2 = client.send(:access_token_params).merge(params)
79
+ params2[:redirect_uri] = redirect_uri
80
+ params2[:response_type] = "code"
81
+ url2 = client.send(:connection).build_url("/oauth/authorize/", params2).to_s
82
+
83
+ url2.should == url
84
+ end
85
+ end
86
+
87
+ describe ".get_access_token" do
88
+
89
+ before do
90
+ @client = Instagram::Client.new(:client_id => "CID", :client_secret => "CS")
91
+ @url = @client.send(:connection).build_url("/oauth/access_token/").to_s
92
+ stub_request(:post, @url).
93
+ with(:body => {:client_id => "CID", :client_secret => "CS", :redirect_uri => "http://localhost:4567/oauth/callback", :grant_type => "authorization_code", :code => "C"}).
94
+ to_return(:status => 200, :body => fixture("access_token.json"), :headers => {})
95
+ end
96
+
97
+ it "should get the correct resource" do
98
+ @client.get_access_token(code="C", :redirect_uri => "http://localhost:4567/oauth/callback")
99
+ a_request(:post, @url).
100
+ with(:body => {:client_id => "CID", :client_secret => "CS", :redirect_uri => "http://localhost:4567/oauth/callback", :grant_type => "authorization_code", :code => "C"}).
101
+ should have_been_made
102
+ end
103
+
104
+ it "should return a hash with an access_token and user data" do
105
+ response = @client.get_access_token(code="C", :redirect_uri => "http://localhost:4567/oauth/callback")
106
+ response.access_token.should == "at"
107
+ response.user.username.should == "mikeyk"
108
+ end
109
+ end
110
+ end
@@ -0,0 +1,71 @@
1
+ require File.expand_path('../../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::Client do
4
+ Instagram::Configuration::VALID_FORMATS.each do |format|
5
+ context ".new(:format => '#{format}')" do
6
+
7
+ before do
8
+ @client = Instagram::Client.new(:format => format, :client_id => 'CID', :client_secret => 'CS', :access_token => 'AT')
9
+ end
10
+
11
+ describe ".media_comments" do
12
+
13
+ before do
14
+ stub_get("media/777/comments.#{format}").
15
+ with(:query => {:access_token => @client.access_token}).
16
+ to_return(:body => fixture("media_comments.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
17
+ end
18
+
19
+ it "should get the correct resource" do
20
+ @client.media_comments(777)
21
+ a_get("media/777/comments.#{format}").
22
+ with(:query => {:access_token => @client.access_token}).
23
+ should have_been_made
24
+ end
25
+
26
+ it "should return an array of user search results" do
27
+ comments = @client.media_comments(777)
28
+ comments.should be_a Array
29
+ comments.first.text.should == "Vet visit"
30
+ end
31
+ end
32
+
33
+ describe ".create_media_comment" do
34
+
35
+ before do
36
+ stub_post("media/777/comments.#{format}").
37
+ with(:body => {:text => "hi there", :access_token => @client.access_token}).
38
+ to_return(:body => fixture("media_comment.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
39
+ end
40
+
41
+ it "should get the correct resource" do
42
+ @client.create_media_comment(777, "hi there")
43
+ a_post("media/777/comments.#{format}").
44
+ with(:body => {:text => "hi there", :access_token => @client.access_token}).
45
+ should have_been_made
46
+ end
47
+
48
+ it "should return the new comment when successful" do
49
+ comment = @client.create_media_comment(777, "hi there")
50
+ comment.text.should == "hi there"
51
+ end
52
+ end
53
+
54
+ describe ".delete_media_comment" do
55
+
56
+ before do
57
+ stub_delete("media/777/comments/1234.#{format}").
58
+ with(:query => {:access_token => @client.access_token}).
59
+ to_return(:body => fixture("media_comment_deleted.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
60
+ end
61
+
62
+ it "should get the correct resource" do
63
+ @client.delete_media_comment(777, 1234)
64
+ a_delete("media/777/comments/1234.#{format}").
65
+ with(:query => {:access_token => @client.access_token}).
66
+ should have_been_made
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,37 @@
1
+ require File.expand_path('../../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::Client do
4
+ Instagram::Configuration::VALID_FORMATS.each do |format|
5
+ context ".new(:format => '#{format}')" do
6
+ before do
7
+ @client = Instagram::Client.new(:format => format, :client_id => 'CID', :client_secret => 'CS', :access_token => 'AT')
8
+ end
9
+
10
+
11
+ describe ".geography_recent_media" do
12
+
13
+ context "with geography ID passed" do
14
+
15
+ before do
16
+ stub_get("geographies/12345/media/recent.#{format}").
17
+ with(:query => {:access_token => @client.access_token}).
18
+ to_return(:body => fixture("geography_recent_media.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
19
+ end
20
+
21
+ it "should get the correct resource" do
22
+ @client.geography_recent_media(12345)
23
+ a_get("geographies/12345/media/recent.#{format}").
24
+ with(:query => {:access_token => @client.access_token}).
25
+ should have_been_made
26
+ end
27
+
28
+ it "should return a list of recent media items within the specifed geography" do
29
+ recent_media = @client.geography_recent_media(12345)
30
+ recent_media.should be_a Array
31
+ recent_media.first.user.username.should == "amandavan"
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,66 @@
1
+ require File.expand_path('../../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::Client do
4
+ Instagram::Configuration::VALID_FORMATS.each do |format|
5
+ context ".new(:format => '#{format}')" do
6
+
7
+ before do
8
+ @client = Instagram::Client.new(:format => format, :client_id => 'CID', :client_secret => 'CS', :access_token => 'AT')
9
+ end
10
+
11
+ describe ".media_likes" do
12
+
13
+ before do
14
+ stub_get("media/777/likes.#{format}").
15
+ with(:query => {:access_token => @client.access_token}).
16
+ to_return(:body => fixture("media_likes.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
17
+ end
18
+
19
+ it "should get the correct resource" do
20
+ @client.media_likes(777)
21
+ a_get("media/777/likes.#{format}").
22
+ with(:query => {:access_token => @client.access_token}).
23
+ should have_been_made
24
+ end
25
+
26
+ it "should return an array of user search results" do
27
+ comments = @client.media_likes(777)
28
+ comments.should be_a Array
29
+ comments.first.username.should == "chris"
30
+ end
31
+ end
32
+
33
+ describe ".like_media" do
34
+
35
+ before do
36
+ stub_post("media/777/likes.#{format}").
37
+ with(:body => {:access_token => @client.access_token}).
38
+ to_return(:body => fixture("media_liked.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
39
+ end
40
+
41
+ it "should get the correct resource" do
42
+ @client.like_media(777)
43
+ a_post("media/777/likes.#{format}").
44
+ with(:body => {:access_token => @client.access_token}).
45
+ should have_been_made
46
+ end
47
+ end
48
+
49
+ describe ".unlike_media" do
50
+
51
+ before do
52
+ stub_delete("media/777/likes.#{format}").
53
+ with(:query => {:access_token => @client.access_token}).
54
+ to_return(:body => fixture("media_unliked.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
55
+ end
56
+
57
+ it "should get the correct resource" do
58
+ @client.unlike_media(777)
59
+ a_delete("media/777/likes.#{format}").
60
+ with(:query => {:access_token => @client.access_token}).
61
+ should have_been_made
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,78 @@
1
+ require File.expand_path('../../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::Client do
4
+ Instagram::Configuration::VALID_FORMATS.each do |format|
5
+ context ".new(:format => '#{format}')" do
6
+ before do
7
+ @client = Instagram::Client.new(:format => format, :client_id => 'CID', :client_secret => 'CS', :access_token => 'AT')
8
+ end
9
+
10
+ describe ".location" do
11
+
12
+ before do
13
+ stub_get("locations/514276.#{format}").
14
+ with(:query => {:access_token => @client.access_token}).
15
+ to_return(:body => fixture("location.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
16
+ end
17
+
18
+ it "should get the correct resource" do
19
+ @client.location(514276)
20
+ a_get("locations/514276.#{format}").
21
+ with(:query => {:access_token => @client.access_token}).
22
+ should have_been_made
23
+ end
24
+
25
+ it "should return extended information of a given location" do
26
+ location = @client.location(514276)
27
+ location.name.should == "Instagram"
28
+ end
29
+ end
30
+
31
+ describe ".location_recent_media" do
32
+
33
+ before do
34
+ stub_get("locations/514276/media/recent.#{format}").
35
+ with(:query => {:access_token => @client.access_token}).
36
+ to_return(:body => fixture("location_recent_media.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
37
+ end
38
+
39
+ it "should get the correct resource" do
40
+ @client.location_recent_media(514276)
41
+ a_get("locations/514276/media/recent.#{format}").
42
+ with(:query => {:access_token => @client.access_token}).
43
+ should have_been_made
44
+ end
45
+
46
+ it "should return a list of media taken at a given location" do
47
+ media = @client.location_recent_media(514276)
48
+ media.data.should be_a Array
49
+ media.data.first.user.username.should == "josh"
50
+ end
51
+ end
52
+
53
+ describe ".location_search" do
54
+
55
+ before do
56
+ stub_get("locations/search.#{format}").
57
+ with(:query => {:access_token => @client.access_token}).
58
+ with(:query => {:lat => "37.7808851", :lng => "-122.3948632"}).
59
+ to_return(:body => fixture("location_search.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
60
+ end
61
+
62
+ it "should get the correct resource" do
63
+ @client.location_search("37.7808851", "-122.3948632")
64
+ a_get("locations/search.#{format}").
65
+ with(:query => {:access_token => @client.access_token}).
66
+ with(:query => {:lat => "37.7808851", :lng => "-122.3948632"}).
67
+ should have_been_made
68
+ end
69
+
70
+ it "should return an array of user search results" do
71
+ locations = @client.location_search("37.7808851", "-122.3948632")
72
+ locations.should be_a Array
73
+ locations.first.name.should == "Instagram"
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,78 @@
1
+ require File.expand_path('../../../spec_helper', __FILE__)
2
+
3
+ describe Instagram::Client do
4
+ Instagram::Configuration::VALID_FORMATS.each do |format|
5
+ context ".new(:format => '#{format}')" do
6
+ before do
7
+ @client = Instagram::Client.new(:format => format, :client_id => 'CID', :client_secret => 'CS', :access_token => 'AT')
8
+ end
9
+
10
+ describe ".media_item" do
11
+
12
+ before do
13
+ stub_get("media/18600493.#{format}").
14
+ with(:query => {:access_token => @client.access_token}).
15
+ to_return(:body => fixture("media.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
16
+ end
17
+
18
+ it "should get the correct resource" do
19
+ @client.media_item(18600493)
20
+ a_get("media/18600493.#{format}").
21
+ with(:query => {:access_token => @client.access_token}).
22
+ should have_been_made
23
+ end
24
+
25
+ it "should return extended information of a given media item" do
26
+ media = @client.media_item(18600493)
27
+ media.user.username.should == "mikeyk"
28
+ end
29
+ end
30
+
31
+ describe ".media_popular" do
32
+
33
+ before do
34
+ stub_get("media/popular.#{format}").
35
+ with(:query => {:access_token => @client.access_token}).
36
+ to_return(:body => fixture("media_popular.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
37
+ end
38
+
39
+ it "should get the correct resource" do
40
+ @client.media_popular
41
+ a_get("media/popular.#{format}").
42
+ with(:query => {:access_token => @client.access_token}).
43
+ should have_been_made
44
+ end
45
+
46
+ it "should return popular media items" do
47
+ media_popular = @client.media_popular
48
+ media_popular.should be_a Array
49
+ media_popular.first.user.username == "babycamera"
50
+ end
51
+ end
52
+
53
+ describe ".media_search" do
54
+
55
+ before do
56
+ stub_get("media/search.#{format}").
57
+ with(:query => {:access_token => @client.access_token}).
58
+ with(:query => {:lat => "37.7808851", :lng => "-122.3948632"}).
59
+ to_return(:body => fixture("media_search.#{format}"), :headers => {:content_type => "application/#{format}; charset=utf-8"})
60
+ end
61
+
62
+ it "should get the correct resource" do
63
+ @client.media_search("37.7808851", "-122.3948632")
64
+ a_get("media/search.#{format}").
65
+ with(:query => {:access_token => @client.access_token}).
66
+ with(:query => {:lat => "37.7808851", :lng => "-122.3948632"}).
67
+ should have_been_made
68
+ end
69
+
70
+ it "should return an array of user search results" do
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"
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end