Search the web
Sign In
New User? Sign Up
plazesapi
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Plazes and Yahoo! Pipes   Message List  
Reply | Forward Message #102 of 236 |
Re: [plazesapi] Plazes and Yahoo! Pipes

* 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



Tue Jan 8, 2008 9:50 am

tilz3000
Offline Offline
Send Email Send Email

Forward
Message #102 of 236 |
Expand Messages Author Sort by Date

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...
andypiper_uk
Offline Send Email
Jan 7, 2008
4:20 pm

... 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...
Tilmann Singer
tilz3000
Offline Send Email
Jan 8, 2008
9:50 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help