Google talk is awesome... and for awhile i had the big stupid badge that would show if i was online or not with a click to chat button...
i wanted to be able to use this again and style it to my liking (im just crazy about my html) so i created my own
API to pull the badge and return its info as
JSON. i tried to do this with YQL but they cache the requests so i had to do it from my server
so heres the super simple script and how to use it
the api is at
http://cartercole.com/dev/api/gtbadge.asp?tk=[appid]
first your going to need to
create a badge... (that will let us query your status from a public location)
next you need to find your badge id. if this is the iframe url for the badge
http://www.google.com/talk/service/badge/Show?tk=z01q6amlqklsogqki1t3ujmofuerp8pbc7hi5vuc0e2pv30c5mrb1tnl3im146nnc3h8f0q19sbism61srg12t5f06guvhhbecj9cgk60i2gbv7sqjdqb18k4893trro8nmuccsbfluh362067l4svbhjgibaiodbh3d1n5e1&w=200&h=60 the bold part is the id (or the
tk= parameter). thats the badge id you need to pass to the api as the
tk= parameter :) along with the optional
callback= parameter so result is returned as
callback({Object}) so the script can be used as JSONP (
see explanation here) heres an example of what it returns (including optional callback)
thats about it but before one last thing ill do... heres a quick example of its use.
and heres that script live right here... (i tweaked it a bit for better output) if you have any questions then just click below im usually online :)