Skip to content

Instantly share code, notes, and snippets.

@jasonrhodes
Created February 9, 2014 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrhodes/8899502 to your computer and use it in GitHub Desktop.
Save jasonrhodes/8899502 to your computer and use it in GitHub Desktop.
Quick underscore-style template for a Flickr photo URL (see: http://www.flickr.com/services/api/misc.urls.html)
<img src='http://farm<%= farm %>.staticflickr.com/<%= server %>/<%= id %>_<%= secret %>_{s|q|t|m|n|z|c|b|o}.jpg'>
@jasonrhodes
Copy link
Author

Flickr photo objects returned from their API look like this:

{
  "id": "9693710894",
  "owner": "49832497@N02",
  "secret": "7e8d6ea386",
  "server": "3798",
  "farm": 4,
  "title": "Getting Down Below Zero",
  "ispublic": 1,
  "isfriend": 0,
  "isfamily": 0
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment