123 lines
3.3 KiB
XML
123 lines
3.3 KiB
XML
|
<method name="friendof">
|
||
|
<shortdes>
|
||
|
Returns a list of which other LiveJournal users list this user as their friend.
|
||
|
</shortdes>
|
||
|
<des>
|
||
|
Returns a "friends of" list for a specified user. An optional limit of returned friends can be supplied.
|
||
|
</des>
|
||
|
<arguments><struct count="1">
|
||
|
|
||
|
&authInfo;
|
||
|
|
||
|
<key name="friendoflimit" 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: 475
|
||
|
|
||
|
<?xml version="1.0"?>
|
||
|
<methodCall>
|
||
|
<methodName>LJ.XMLRPC.friendof</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>
|
||
|
<member><name>friendoflimit</name>
|
||
|
<value><int>2</int></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
</param>
|
||
|
</params>
|
||
|
</methodCall>
|
||
|
</expost>
|
||
|
|
||
|
<!--===================[ RETURN ]==============================-->
|
||
|
<returns><struct count="1">
|
||
|
|
||
|
<key name="friendofs" count="1">
|
||
|
<des>
|
||
|
The list of people who list this user as a friend.
|
||
|
</des>
|
||
|
&friendsList;
|
||
|
</key>
|
||
|
|
||
|
</struct></returns>
|
||
|
|
||
|
<exreturn>
|
||
|
HTTP/1.1 200 OK
|
||
|
Connection: close
|
||
|
Content-length: 936
|
||
|
Content-Type: text/xml
|
||
|
Date: Tue, 16 Jul 2002 00:53:15 GMT
|
||
|
Server: Apache/1.3.4 (Unix)
|
||
|
|
||
|
<?xml version="1.0"?>
|
||
|
<methodResponse>
|
||
|
<params>
|
||
|
<param>
|
||
|
|
||
|
<value><struct>
|
||
|
<member><name>friendofs</name>
|
||
|
<value><array>
|
||
|
<data>
|
||
|
<value><struct>
|
||
|
<member><name>fgcolor</name>
|
||
|
|
||
|
<value><string>#000000</string></value>
|
||
|
</member>
|
||
|
<member><name>username</name>
|
||
|
<value><string>aisha_plushie</string></value>
|
||
|
|
||
|
</member>
|
||
|
<member><name>fullname</name>
|
||
|
<value><string>Stripe</string></value>
|
||
|
</member>
|
||
|
<member><name>bgcolor</name>
|
||
|
|
||
|
<value><string>#ffffff</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
<value><struct>
|
||
|
<member><name>fgcolor</name>
|
||
|
|
||
|
<value><string>#000000</string></value>
|
||
|
</member>
|
||
|
<member><name>username</name>
|
||
|
<value><string>badcharlotte</string></value>
|
||
|
|
||
|
</member>
|
||
|
<member><name>fullname</name>
|
||
|
<value><string>Charlotte</string></value>
|
||
|
</member>
|
||
|
<member><name>bgcolor</name>
|
||
|
|
||
|
<value><string>#ffffff</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
</data>
|
||
|
</array></value>
|
||
|
</member>
|
||
|
|
||
|
</struct></value>
|
||
|
</param>
|
||
|
</params>
|
||
|
</methodResponse>
|
||
|
</exreturn>
|
||
|
|
||
|
</method>
|