Returns a paged list of documents marked as favorites by the specified user.
/srv.asmx/GetFavoriteDocumentsOfUser
/srv.asmx/GetFavoriteDocumentsOfUser?AuthenticationTicket=...&userName=...&startingRow=...&rowCount=.../srv.asmx/GetFavoriteDocumentsOfUser (form data)http://tempuri.org/GetFavoriteDocumentsOfUser| Parameter | Type | Required | Description |
|---|---|---|---|
AuthenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
userName |
string | Yes | The username whose favorite documents are to be retrieved |
startingRow |
int | Yes | Zero-based row offset for paging. Pass 0 to start from the first result |
rowCount |
int | Yes | Number of rows to return (page size). Pass 0 to return all results |
<root success="true" totalcount="15">
<document id="101" name="Budget2024.xlsx" path="/Finance/Budget2024.xlsx" ... />
<document id="205" name="ProjectPlan.pdf" path="/Projects/ProjectPlan.pdf" ... />
</root>
<root success="false" error="[901] Session expired or invalid ticket" />
GET /srv.asmx/GetFavoriteDocumentsOfUser?AuthenticationTicket=abc-123&userName=jsmith&startingRow=0&rowCount=25
POST /srv.asmx/GetFavoriteDocumentsOfUser HTTP/1.1
Content-Type: application/x-www-form-urlencoded
AuthenticationTicket=abc-123&userName=jsmith&startingRow=0&rowCount=25
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://tempuri.org/">
<soap:Body>
<tns:GetFavoriteDocumentsOfUser>
<tns:AuthenticationTicket>abc-123</tns:AuthenticationTicket>
<tns:userName>jsmith</tns:userName>
<tns:startingRow>0</tns:startingRow>
<tns:rowCount>25</tns:rowCount>
</tns:GetFavoriteDocumentsOfUser>
</soap:Body>
</soap:Envelope>
startingRow=0 and rowCount=0 to retrieve all favorite documents.totalcount attribute on the root element reflects the total number of favorite documents for the user, regardless of paging parameters.<document> element includes a UserViewStatus integer attribute: 0 = never viewed, 1 = viewed but the published version has since changed, 2 = viewed the current published version. See GetDocument for the full attribute reference.