* Peter Rukavina <peter@...> [20080106 18:12]:
> It seems that it's possible to "befriend" another Plazes user, if you
> have their Plazes user {id}, by:
>
> curl -u 'bob:secret' http://plazes.com/relationships.xml -d
> "relationship[contact_id]={id}"
>
> The return, on successful request, looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <relationship>
> <id>{id}</id>
> <contact>
> <id>{id}</id>
> </contact>
> </relationship>
>
> If you've already sent a friend request, the return is:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <errors>
> <error>Contact has already been taken</error>
> </errors>
Right.
It is deliberately not part of the published API because we didn't
want to commit to that specific interface, and given the recent
changes on the website regarding renaming 'contacts' to 'friends' it
may change in the future, so please do not rely on it.
Also we were not sure wether it makes sense to completely expose the
friendship creation process of Plazes via the API or wether it is
something that we want the user to use the website for. I guess it
could be added to the API if there is demand for it.
Til
--
http://plazes.com/whereis/til | +49 176 20 19 51 69 | http://tils.net