Skip to content

Instantly share code, notes, and snippets.

@funkatron
Created March 29, 2011 03:45
Show Gist options
  • Save funkatron/891778 to your computer and use it in GitHub Desktop.
Save funkatron/891778 to your computer and use it in GitHub Desktop.
Simple docs for Spaz Web APIs
# https://github.com/funkatron/Spaz-Web-APIs
#
# Avatar methods
#
# basic structure
# http://api.getspaz.com/avatar/:service/:username.:format
# :service is currently "identi.ca" or "twitter.com"
# :username is the username
# :format is "json", "xml" or "js" (jsonp. sorta). JSON is default
# returns
# {"url":"http:\/\/avatar.identi.ca\/11868-48-20090709144251.jpeg","service":"identi.ca","userid":"funkatron"}
curl -i http://api.getspaz.com/avatar/identi.ca/funkatron
# get as XML
curl -i http://api.getspaz.com/avatar/identi.ca/funkatron.xml
# redirect via 302 by adding ?redirect=1
curl -i http://api.getspaz.com/avatar/identi.ca/funkatron.json?redirect=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment