* andypiper_uk <andypiperuk@...> [20080107 17:17]:
> I wanted to have a simple way of working out my current location from
> Plazes. Right now it looks like I need to know my user ID number, and
> then go get http://plazes.com/users/<id>/activity.xml, and then get
> the name of the <plaze> element. Something that just returned my
> current Plaze would be neater (for things like the ecto Applescript
> that I based off of Peter Rukavina's Adium Applescript of days gone
> by, which used the old WhereAmI API - I know it is still there for
> now, but I'm thinking ahead...).
>
> Anyway, I created a really simple Yahoo Pipe which can be configured
> with a user ID and then grabs just the basic information from the output.
>
> The base Pipe is here:
> http://pipes.yahoo.com/pipes/pipe.info?_id=ZCgigzK93BGPeu60ouNLYQ
>
> It is not very useful in raw form as Pipes returns RSS by default.
>
> You can add a user parameter (it defaults to mine, 6032)
>
http://pipes.yahoo.com/pipes/pipe.run?_id=ZCgigzK93BGPeu60ouNLYQ&user=6032&_rend\
er=json
Nice!
For your information, all requests to http://plazes.com/users/{id}
also accept the login name for id instead of the integer id, so
sometimes it can be convenient to use it like this:
$ curl
"http://pipes.yahoo.com/pipes/pipe.run?_id=ZCgigzK93BGPeu60ouNLYQ&user=til&_rend\
er=json"
{"count":1,"value":{"title":"whereis","description":"Find the current or most
recent location of a Plazes
user","link":"http:\/\/pipes.yahoo.com\/pipes\/pipe.info?_id=ZCgigzK93BGPeu60ouN\
LYQ","pubDate":"Tue, 08 Jan 2008 01:39:10
PST","generator":"http:\/\/pipes.yahoo.com\/pipes\/","callback":"","items":[{"ci\
ty":"BERLIN","last_updated":"2008-01-08T08:56:31Z","user":"Tilmann
Singer","plaze":"Plazes HQ","description":"","title":""}]}}
Til
--
http://plazes.com/whereis/til | +49 176 20 19 51 69 | http://tils.net