Created
March 29, 2011 03:45
-
-
Save funkatron/891778 to your computer and use it in GitHub Desktop.
Simple docs for Spaz Web APIs
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
# 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