Ecco alcuni esempi di metodi che puoi usare per interagire con le informazioni disponibili nella sezione La mia pagina del sito web (ci sono troppi metodi per elencarli tutti).
Esempi di metodi per interagire con la Mia Pagina
- Retrieve open auctions: SellerAccountService.GetOpenArticles
- Retrieve sold auctions: SellerAccountService.GetSoldArticles
- Retrieve unsold auctions: SellerAccountService.GetUnsoldArticles
- Retrieve planned auctions: SellerAccountService.GetPlannedArticles
- Insert a question: BuyerAccountService.InsertQuestion
Vedi questa pagina per una breve descrizione del tipo di metodi puoi trovare in ogni servizio.
JSON
- POST https://ws.ricardo.ch/ricardoapi/SellerAccountService.Json.svc/GetSoldArticles HTTP/1.1
- Content-Type: application/json
- Ricardo-Username: [YOUR TokenCredential]
- Host: ws.betaqxl.com
{
"getSoldArticlesParameter": {
"ArticleIdFilter": null,
"ArticleTitleFilter": null,
"ArticleTypeFilter": 0,
"AscendingSort": true,
"InternalReferenceFilter": null,
"IsArchived": false,
"IsCompletedTransaction": false,
"LastnameFilter": null,
"MinimumEndDate": "\/Date(1356994800000+0100)\/",
"NicknameFilter": null,
"PageNumber": 1,
"PageSize": 10,
"SortBy": 1
}
}
SOAP Example
- POST https://ws.ricardo.ch/RicardoApi/SellerAccountService.Soap.svc HTTP/1.1
- Content-Type: application/soap+xml; charset=utf-8
- Host: ws.betaqxl.com
- Accept-Encoding: gzip, deflate
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">http://ricardo.contracts/ISellerAccountService/GetSoldArticles</a:Action>
<a:MessageID>urn:uuid:08e1c656-943f-4f6c-ab8d-e7b265883dbf</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>YOUR TOKEN</Username>
<Password></Password>
</UsernameToken>
</Security>
</s:Header>
<s:Body>
<GetSoldArticles xmlns="http://ricardo.contracts">
<getSoldArticlesParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ArticleIdFilter i:nil="true" />
<ArticleTitleFilter i:nil="true" />
<ArticleTypeFilter>All</ArticleTypeFilter>
<AscendingSort>true</AscendingSort>
<InternalReferenceFilter i:nil="true" />
<IsArchived>false</IsArchived>
<IsCompletedTransaction>false</IsCompletedTransaction>
<LastnameFilter i:nil="true" />
<MinimumEndDate>2013-01-01T00:00:00</MinimumEndDate>
<NicknameFilter i:nil="true" />
<PageNumber>1</PageNumber>
<PageSize>10</PageSize>
<SortBy>SortByArticleId</SortBy>
</getSoldArticlesParameter>
</GetSoldArticles>
</s:Body>
</s:Envelope>