?

Log in

No account? Create an account
Question about LJ.XMLRPC - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Question about LJ.XMLRPC [Oct. 11th, 2006|05:54 am]
LiveJournal Client Discussions

lj_clients

[godin]
How I can recive friendlist of arbitrary user using LJ.XMLRPC?
linkReply

Comments:
From: mvc
2006-10-10 10:36 pm (UTC)
I don't think you can do this with the XMLRPC API (getfriends is the method to get a friend list, but it requires the password of the user whose friend list you're checking). However, if you aren't attached to using XMLRPC, there are a couple of ways to get the information you want: the FOAF feed, at http://username.livejournal.com/data/foaf, and the text-only friend data feed, at http://www.livejournal.com/misc/fdata.bml?user=username. You can see a few more details on the bots page.
(Reply) (Thread)
[User Picture]From: godin
2006-10-10 11:07 pm (UTC)
Thanks! But, i know about FOAF and bots page. I suppose XMLRPC API Documentation incomplete or I do something wrong.
(Reply) (Parent) (Thread)
[User Picture]From: jwm
2006-10-11 12:10 am (UTC)

Where's the documentation on the text-only friend data feed? Is there one for single journals?

(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2006-10-11 03:06 am (UTC)
o.0

i think you might be confused. the given example will work for any user.

if you want a community, you have to append &comm=1 to the url.

for example:
exampleusername = http://www.livejournal.com/misc/fdata.bml?user=exampleusername
communityname = http://www.livejournal.com/misc/fdata.bml?user=communityname&comm=1

for personal accounts, a name with a < is a person who lists the given user as a friend. they appear on the friend-of list of the given user.
a name with a > is a person who the given user lists as a friend. they appear on the list of friends friended by the given user.
a name that appears in both sections is a mutual friend of the given user. they appear on the list of mutual friends of the given user.

for community accounts, a name with a < is a person who is a member of the given community. they appear on the list of members of the given community.
a name with a > is a person who lists the community as a friend. they appear on the list of watchers of the given community.
a name that appears in both sections is both a member and a watcher of the given community. they appear on the list of members and the list of watchers of the given community.

so.
< means "friended by" or "member of."
> means "friend of" or "watcher of."
being on both lists means "mutual friend of" or "member and watcher of."

it's a little confusing but i think i got it correct.

if this didn't answer your question, i didn't understand your question.
(Reply) (Parent) (Thread)
[User Picture]From: jwm
2006-10-11 10:41 am (UTC)

I was hoping for a flat text rendering of a given user's journal or friends list. Seems the only way to generate that (or an XML equivalent) is to cook up your own S2 style.

(Reply) (Parent) (Thread)
[User Picture]From: kunzite1
2006-10-11 10:47 am (UTC)
ahh... that would be correct.
(Reply) (Parent) (Thread)
[User Picture]From: godin
2006-10-11 11:10 am (UTC)
And I can't recive posts from other journal using LJ.XMLRPC.getevents :(
(Reply) (Parent) (Thread)