Created
May 18, 2012 00:03
-
-
Save shawndrost/2722356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.3-p125 :021 > User.last.fb.photos.map{|p|p["source_id"]}.sort | |
User Load (2.5ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 | |
get http://localhost:5001/users/4fb590c3db97422038000003/photos/facebook | |
200 | |
x-frame-options: "sameorigin" | |
x-xss-protection: "1; mode=block" | |
content-type: "application/json;charset=utf-8" | |
content-length: "126598" | |
server: "WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)" | |
date: "Thu, 17 May 2012 23:59:29 GMT" | |
connection: "close" | |
=> ["10100184510401475", "10100195627627495", ...] | |
ruby-1.9.3-p125 :022 > User.last.fb.photos.refresh "unused_string_that_is_still_required" # gotta refresh photos before fetching them | |
User Load (1.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 | |
post http://localhost:5001/users/4fb590c3db97422038000003/photos/facebook/refresh | |
Content-Type: "application/x-www-form-urlencoded" | |
201 | |
x-frame-options: "sameorigin" | |
x-xss-protection: "1; mode=block" | |
content-type: "text/html;charset=utf-8" | |
content-length: "0" | |
server: "WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)" | |
date: "Fri, 18 May 2012 00:01:49 GMT" | |
connection: "close" | |
=> nil | |
ruby-1.9.3-p125 :023 > User.last.fb.photos.map{|p|p["source_id"]}.sort | |
User Load (0.7ms) SELECT "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT 1 | |
get http://localhost:5001/users/4fb590c3db97422038000003/photos/facebook | |
200 | |
x-frame-options: "sameorigin" | |
x-xss-protection: "1; mode=block" | |
content-type: "application/json;charset=utf-8" | |
content-length: "253195" | |
server: "WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)" | |
date: "Fri, 18 May 2012 00:01:51 GMT" | |
connection: "close" | |
=> ["10100184510401475", "10100184510401475", ...] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment