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

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 #101 of 236 |
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


Running this query results in a JSON collection containing something like:
"items":
[
{
"city":"Farnborough",
"last_updated":"2008-01-07T14:28:00Z",
"user":"Andy Piper",
"plaze":"Andy's Office",
"description":"",
"title":""
}
]

(the plaze name here being fictional - run the pipe to find out where
I am!)

Annoyingly, Pipes only allows me to publish JSON or RSS (I'd prefer
just simple text, but hey-ho).

Might be useful to someone...

--
Andy Piper | Farnborough, Hampshire (UK)
http://andypiper.co.uk
http://www.flickr.com/photos/andypiper





Mon Jan 7, 2008 4:20 pm

andypiper_uk
Offline Offline
Send Email Send Email

Forward
Message #101 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