157 lines
4.7 KiB
XML
Executable File
157 lines
4.7 KiB
XML
Executable File
<method name="getfriends">
|
|
<shortdes>
|
|
Returns a list of which other LiveJournal users this user lists as their friend.
|
|
</shortdes>
|
|
<des>
|
|
Returns a verbose list of information on friends a user has listed. Optionally able to include their friends of list, the friends group associated with each user, and a limit on the number of friends to return.
|
|
</des>
|
|
<arguments><struct count="1">
|
|
|
|
&authInfo;
|
|
|
|
<key name="includefriendof" count="opt"><scalar><des>
|
|
If set to 1, you will also get back the info from the "friendof" mode. Some clients show friends and friendof data in separate tabs/panes. If you're always going to load both, then use this flag (as opposed to a tabbed dialog approach, where the user may not go to the second tab and thus would not need to load the friendof data.) friendof request variables can be used.
|
|
</des></scalar></key>
|
|
|
|
<key name="includegroups" count="opt"><scalar><des>
|
|
If set to 1, you will also get back the info from the "getfriendgroups" mode. See above for the reason why this would be useful.
|
|
</des></scalar></key>
|
|
|
|
<key name="friendlimit" count="opt"><scalar><des>
|
|
If set to a numeric value greater than zero, this mode will only return the number of results indicated. Useful only for building pretty lists for display which might have a button to view the full list nearby.
|
|
</des></scalar></key>
|
|
|
|
</struct></arguments>
|
|
|
|
<expost>
|
|
POST /interface/xmlrpc HTTP/1.0
|
|
User-Agent: XMLRPC Client 1.0
|
|
Host: www.livejournal.com
|
|
Content-Type: text/xml
|
|
Content-Length: 401
|
|
|
|
<?xml version="1.0"?>
|
|
<methodCall>
|
|
<methodName>LJ.XMLRPC.getfriends</methodName>
|
|
<params>
|
|
<param>
|
|
|
|
<value><struct>
|
|
<member><name>username</name>
|
|
<value><string>test</string></value>
|
|
</member>
|
|
<member><name>password</name>
|
|
|
|
<value><string>test</string></value>
|
|
</member>
|
|
<member><name>ver</name>
|
|
<value><int>1</int></value>
|
|
|
|
</member>
|
|
</struct></value>
|
|
</param>
|
|
</params>
|
|
</methodCall>
|
|
</expost>
|
|
|
|
<!--===================[ RETURN ]==============================-->
|
|
<returns><struct count="1">
|
|
|
|
<key name="friendgroups" count="1">
|
|
&friendGroups;
|
|
</key>
|
|
|
|
<key name="friendofs">
|
|
&friendsList;
|
|
</key>
|
|
|
|
<key name="friends">
|
|
&friendsList;
|
|
</key>
|
|
|
|
</struct></returns>
|
|
|
|
<exreturn>
|
|
HTTP/1.1 200 OK
|
|
Connection: close
|
|
Content-length: 1377
|
|
Content-Type: text/xml
|
|
Date: Tue, 16 Jul 2002 00:44:23 GMT
|
|
Server: Apache/1.3.4 (Unix)
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<methodResponse>
|
|
<params>
|
|
<param>
|
|
<value><struct>
|
|
<member><name>friends</name>
|
|
<value><array>
|
|
|
|
<data>
|
|
<value><struct>
|
|
<member><name>fgcolor</name>
|
|
<value><string>#000000</string></value>
|
|
</member>
|
|
|
|
<member><name>username</name>
|
|
<value><string>bradfitz</string></value>
|
|
</member>
|
|
<member><name>fullname</name>
|
|
|
|
<value><string>Brad Fitzpatrick</string></value>
|
|
</member>
|
|
<member><name>bgcolor</name>
|
|
<value><string>#ffffff</string></value>
|
|
|
|
</member>
|
|
</struct></value>
|
|
<value><struct>
|
|
<member><name>fgcolor</name>
|
|
<value><string>#efcfff</string></value>
|
|
|
|
</member>
|
|
<member><name>username</name>
|
|
<value><string>ljfresno</string></value>
|
|
</member>
|
|
<member><name>fullname</name>
|
|
|
|
<value><string>Fresno LJ users</string></value>
|
|
</member>
|
|
<member><name>type</name>
|
|
<value><string>community</string></value>
|
|
|
|
</member>
|
|
<member><name>bgcolor</name>
|
|
<value><string>#000000</string></value>
|
|
</member>
|
|
</struct></value>
|
|
|
|
<value><struct>
|
|
<member><name>fgcolor</name>
|
|
<value><string>#520155</string></value>
|
|
</member>
|
|
<member><name>username</name>
|
|
|
|
<value><string>webkin</string></value>
|
|
</member>
|
|
<member><name>fullname</name>
|
|
<value><string>Ellen Stafford</string></value>
|
|
|
|
</member>
|
|
<member><name>bgcolor</name>
|
|
<value><string>#fcddff</string></value>
|
|
</member>
|
|
</struct></value>
|
|
|
|
</data>
|
|
</array></value>
|
|
</member>
|
|
</struct></value>
|
|
</param>
|
|
</params>
|
|
</methodResponse>
|
|
</exreturn>
|
|
|
|
</method>
|