144 lines
3.8 KiB
XML
144 lines
3.8 KiB
XML
|
<method name="getdaycounts">
|
||
|
<shortdes>
|
||
|
This mode retrieves the number of journal entries per day.
|
||
|
</shortdes>
|
||
|
<des>
|
||
|
This mode retrieves the number of journal entries per day. Useful for populating calendar widgets in GUI clients. Optionally a journal can be specified. It returns a list of the dates and accompanied counts.
|
||
|
</des>
|
||
|
<arguments><struct count="1">
|
||
|
|
||
|
&authInfo;
|
||
|
|
||
|
<key name="usejournal" count="opt">
|
||
|
<des>
|
||
|
If getting the day counts of a shared journal, include this key and the username you wish to get the counts of. By default, you load the counts of "user" as specified above.
|
||
|
</des>
|
||
|
&useJournal;
|
||
|
</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: 403
|
||
|
|
||
|
<?xml version="1.0"?>
|
||
|
<methodCall>
|
||
|
<methodName>LJ.XMLRPC.getdaycounts</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="daycounts" count="1"><list count="1"><struct count="0more"><des>
|
||
|
For each day that the user has posted a journal entry, a struct is returned in the list.
|
||
|
</des>
|
||
|
<key name="date"><scalar><des>The date, in yyyy-dd-mm format.</des></scalar></key>
|
||
|
<key name="count"><scalar><des>The number of journal entries on that date.</des></scalar></key>
|
||
|
</struct>
|
||
|
</list></key>
|
||
|
|
||
|
</struct></returns>
|
||
|
|
||
|
<exreturn>
|
||
|
HTTP/1.1 200 OK
|
||
|
Connection: close
|
||
|
Content-length: 70580
|
||
|
Content-Type: text/xml
|
||
|
Date: Tue, 16 Jul 2002 20:50:28 GMT
|
||
|
Server: Apache/1.3.4 (Unix)
|
||
|
|
||
|
<?xml version="1.0"?>
|
||
|
|
||
|
<methodResponse>
|
||
|
<params>
|
||
|
<param>
|
||
|
<value><struct>
|
||
|
<member><name>daycounts</name>
|
||
|
<value><array>
|
||
|
|
||
|
<data>
|
||
|
<value><struct>
|
||
|
<member><name>count</name>
|
||
|
<value><int>1</int></value>
|
||
|
</member>
|
||
|
|
||
|
<member><name>date</name>
|
||
|
<value><string>1995-05-01</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
<value><struct>
|
||
|
|
||
|
<member><name>count</name>
|
||
|
<value><int>1</int></value>
|
||
|
</member>
|
||
|
<member><name>date</name>
|
||
|
|
||
|
<value><string>1997-05-01</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
<value><struct>
|
||
|
<member><name>count</name>
|
||
|
|
||
|
<value><int>1</int></value>
|
||
|
</member>
|
||
|
<member><name>date</name>
|
||
|
<value><string>1999-05-03</string></value>
|
||
|
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
<value><struct>
|
||
|
<member><name>count</name>
|
||
|
<value><int>17</int></value>
|
||
|
|
||
|
</member>
|
||
|
<member><name>date</name>
|
||
|
<value><string>1999-05-04</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
|
||
|
...
|
||
|
|
||
|
<value><struct>
|
||
|
<member><name>count</name>
|
||
|
<value><int>1</int></value>
|
||
|
</member>
|
||
|
<member><name>date</name>
|
||
|
|
||
|
<value><string>2020-02-20</string></value>
|
||
|
</member>
|
||
|
</struct></value>
|
||
|
</data>
|
||
|
</array></value>
|
||
|
</member>
|
||
|
|
||
|
</struct></value>
|
||
|
</param>
|
||
|
</params>
|
||
|
</methodResponse>
|
||
|
</exreturn>
|
||
|
|
||
|
</method>
|