C# Class TradeMe.Api.Client.MyTradeMeMethods

The MyTradeMeMethods class contains the methods requried for making calls to the API related to My TradeMe.
Show file Open project: TradeMe/trade-me-api-wrapper Class Usage Examples

Public Methods

Method Description
AddDeliveryAddress ( DeliveryAddress request ) : System.Xml.Linq.XDocument

Adds a delivery address to the authenticated user’s profile. POST

REQUIRES AUTHENTICATION.

AddFeedback ( FeedbackRequest request ) : System.Xml.Linq.XDocument

Adds feedback to a listing. POST

REQUIRES AUTHENTICATION.

AddMemberToBlackList ( BlacklistRequest request ) : System.Xml.Linq.XDocument

Adds a member to the authenticated user’s blacklist. POST

REQUIRES AUTHENTICATION.

AddNote ( SaveNoteRequest request ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Creates or updates the note on a listing. POST

REQUIRES AUTHENTICATION.

ClearSavedCreditCard ( ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Clears the authenticated member’s saved credit card information. DELETE

REQUIRES AUTHENTICATION.

DeleteDeliveryAddress ( string deliveryId ) : System.Xml.Linq.XDocument

Removes a delivery address from the authenticated user’s profile. DELETE

REQUIRES AUTHENTICATION.

DeleteListingFromWatchlist ( string listingId ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Save a listing to a member’s watchlist. DELETE

Will remove the listing with the listingId provided from the members watchlist. Creates a query string using the listingId provided.

REQUIRES AUTHENTICATION.

DeleteListingStatus ( string purchaseId ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Deletes the status from a listing in the authenticated user’s Sold Items list. DELETE

REQUIRES AUTHENTICATION.

DeleteListingStatus ( string listingId, string offerId ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Deletes the status from a listing in the authenticated user’s Sold Items list. DELETE

REQUIRES AUTHENTICATION.

DeleteNote ( string listingId, string noteId, string offerId ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Removes the note from a listing. DELETE

REQUIRES AUTHENTICATION.

FixedPriceOffers ( ) : FixedPriceOffers

Performs the My Trade Me Method: Retrieve a list of Fixed Price Offers.

Creates a query string and performs the request.

REQUIRES AUTHENTICATION.

FixedPriceOffers ( string query ) : FixedPriceOffers

Performs the My Trade Me Method: Retrieve a list of Fixed Price Offers

using the "query" string provided - should be the "MyTradeMe/FixedPriceOffers.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

GetBlacklistedMembers ( ) : Blacklist

Retrieves a list of all the members on the authenticated user’s blacklist. GET

REQUIRES AUTHENTICATION.

GetEmailPreferences ( ) : EmailOptions

Retrieves the authenticated user’s email preferences. GET

REQUIRES AUTHENTICATION.

GetJobAgentReport ( ) : JobAgentReport

Retrieves the Job Agent report for the authenticated user. GET

REQUIRES AUTHENTICATION.

GetLisingFees ( string listingId ) : SellingFee

Retrieves information about fees for a single listing. GET

REQUIRES AUTHENTICATION.

GetListOfDeliveryAddresses ( ) : Address

Retrieves a list of delivery addresses for the authenticated user. GET

REQUIRES AUTHENTICATION.

GetNote ( string listingId ) : NoteResponse

Retrieves the note for a listing, if there is one. GET

REQUIRES AUTHENTICATION.

GetPayNowLedgerBySettlement ( string batchId ) : PayNowLedger

Returns Pay Now ledger entries for a settlement into the authenticated user’s bank account. GET

REQUIRES AUTHENTICATION.

GetProductMappings ( ) : ProductMappings

Retrieves a list of product codes and stock levels associated with the authenticated user’s active listings. GET The results will return data from feeds and My Products.

REQUIRES AUTHENTICATION.

GetPropertyAgentReport ( ) : PropertyAgentReport

Retrieves the Property Agent report for the authenticated user. GET

REQUIRES AUTHENTICATION.

GetWeeklySalesStats ( ) : WeeklySales

Retrieve sales statistics for the authenticated user. GET

REQUIRES AUTHENTICATION.

LostItems ( LostItemsCriteria criteria, string page, string rows ) : Listings

Performs the My Trade Me Method: Retrieve a list of lost items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

LostItems ( string query ) : Listings

Performs the My Trade Me Method: Retrieve a list of lost items GET

using the "query" string provided - should be the "MyTradeMe/Lost.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

MemberLedger ( MemberLedgerCriteria criteria, string page, string rows ) : MemberLedger

Performs the My Trade Me method: Retrieve a member’s ledger.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

MemberLedger ( string query ) : MemberLedger

Performs the My Trade Me method: Retrieve a member’s ledger

using the "query" string provided - should be the "MyTradeMe/MemberLedger/All.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

MemberProfileSummary ( ) : MemberSummary

Performs the My Trade Me Method: Retrieves statistics and profile information for the authenticated user.

Constructs the query and performs the request.

REQUIRES AUTHENTICATION.

MemberProfileSummary ( string query ) : MemberSummary

Performs the My Trade Me Method: Retrieves statistics and profile information for the authenticated user.

using the "query" string provided - should be the "MyTradeMe/Summary.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

MyTradeMeMethods ( ConnectionMethods connect ) : System

Initializes a new instance of the MyTradeMeMethods class.

PayNowLedger ( string query ) : PayNowLedger

Performs the My Trade Me Method: Retrieve a member’s Pay Now ledger

using the "query" string provided - should be the "MyTradeMe/PayNowLedger/{criteria}.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

PayNowLedgerWithCriteria ( PayNowLedgerCriteria criteria ) : PayNowLedger

Performs the My Trade Me Method: Retrieve a member’s Pay Now ledger.

Creates a query string using the parameter provided - parameter can be null if it is not required for the request.

REQUIRES AUTHENTICATION.

RefundPayNowPayment ( PayNowRefundRequest request ) : System.Xml.Linq.XDocument

Refunds a Pay Now payment where the authenticated user is the seller. POST

REQUIRES AUTHENTICATION.

RemoveFeedback ( string feedbackId ) : System.Xml.Linq.XDocument

Removes feedback the authenticated user has posted against a listing. DELETE

REQUIRES AUTHENTICATION.

RemoveMemberFromBlacklist ( string memberId ) : System.Xml.Linq.XDocument

Removes a member from the authenticated user’s blacklist. DELETE

REQUIRES AUTHENTICATION.

RespondToFeedback ( FeedbackReplyRequest request ) : System.Xml.Linq.XDocument

Replies to feedback placed against a listing where the authenticated user was the seller. POST

REQUIRES AUTHENTICATION.

SaveListingToWatchlist ( SaveToWatchlistRequest request ) : System.Xml.Linq.XDocument

Performs the My Trade Me Method: Adds a listing to the authenticated user’s watchlist with the option to control when and if an email is sent to the member warning that the auction is closing soon. POST

REQUIRES AUTHENTICATION.

SaveOrUpdateListingStatus ( string purchaseId, string stat ) : StatusResponse

Saves a status to a listing in the authenticated user’s Sold Items list. POST

REQUIRES AUTHENTICATION.

SaveOrUpdateListingStatus ( string listingId, string offerId, string stat ) : StatusResponse

Saves a status to a listing in the authenticated user’s Sold Items list. POST

REQUIRES AUTHENTICATION.

SellingItems ( string query ) : Items

Performs the MyTradeMe method: Retrieve a list of items currently for sale

using the "query" string provided - should be the "MyTradeMe/SellingItems/All.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

SellingItemsWithCriteria ( SellingItemsCriteria criteria ) : Items

Performs the MyTradeMe method: Retrieve a list of items currently for sale.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

SetEmailPreferences ( EmailOptions request ) : System.Xml.Linq.XDocument

Sets the authenticated user’s email preferences. POST

REQUIRES AUTHENTICATION.

SoldItems ( SoldItemsCriteria criteria, string page, string rows ) : SoldItems

Performs the My Trade Me Method: Retrieve a list of sold items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

SoldItems ( string query ) : SoldItems

Performs the My Trade Me Method: Retrieve a list of sold items

using the "query" string provided - should be the "MyTradeMe/SoldItems/{criteria}.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

UnsoldItems ( UnsoldItemsCriteria criteria, string page, string rows ) : UnsoldItems

Performs the My Trade Me Method: Retrieve a list of unsold items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

UnsoldItems ( string query ) : UnsoldItems

Performs the My Trade Me Method: Retrieve a list of unsold items

using the "query" string provided - should be the "MyTradeMe/UnsoldItems.xml" part of the url it shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

UpdateDeliveryAddress ( DeliveryAddress request ) : System.Xml.Linq.XDocument

Modifies a delivery addresses in the authenticated user’s profile. POST

REQUIRES AUTHENTICATION.

UpdateFeedback ( FeedbackUpdateRequest request ) : System.Xml.Linq.XDocument

Modifies feedback the authenticated user has posted against a listing. POST

REQUIRES AUTHENTICATION.

Watchlist ( WatchlistCriteria criteria, string page, string rows ) : Watchlist

Performs the My Trade Me Method: Retrieve a member’s watchlist.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

Watchlist ( string query ) : Watchlist

Performs the My Trade Me Method: Retrieve a member’s watchlist

using the "query" string provided - should be the "MyTradeMe/Watchlist.xml part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

WonItems ( WonItemsCriteria criteria, string page, string rows ) : WonItems

Performs the My Trade Me Method: Retrieve a list of won items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.

WonItems ( string query ) : WonItems

Performs the My Trade Me Method: Retrieve a list of won items

using the "query" string provided - should be the "MyTradeMe/Won.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.

Method Details

AddDeliveryAddress() public method

Adds a delivery address to the authenticated user’s profile. POST

REQUIRES AUTHENTICATION.
public AddDeliveryAddress ( DeliveryAddress request ) : System.Xml.Linq.XDocument
request DeliveryAddress DeliveryAddress
return System.Xml.Linq.XDocument

AddFeedback() public method

Adds feedback to a listing. POST

REQUIRES AUTHENTICATION.
public AddFeedback ( FeedbackRequest request ) : System.Xml.Linq.XDocument
request FeedbackRequest FeedbackRequest
return System.Xml.Linq.XDocument

AddMemberToBlackList() public method

Adds a member to the authenticated user’s blacklist. POST

REQUIRES AUTHENTICATION.
public AddMemberToBlackList ( BlacklistRequest request ) : System.Xml.Linq.XDocument
request BlacklistRequest BlacklistRequest
return System.Xml.Linq.XDocument

AddNote() public method

Performs the My Trade Me Method: Creates or updates the note on a listing. POST

REQUIRES AUTHENTICATION.
public AddNote ( SaveNoteRequest request ) : System.Xml.Linq.XDocument
request SaveNoteRequest SaveNoteRequest.
return System.Xml.Linq.XDocument

ClearSavedCreditCard() public method

Performs the My Trade Me Method: Clears the authenticated member’s saved credit card information. DELETE

REQUIRES AUTHENTICATION.
public ClearSavedCreditCard ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument

DeleteDeliveryAddress() public method

Removes a delivery address from the authenticated user’s profile. DELETE

REQUIRES AUTHENTICATION.
public DeleteDeliveryAddress ( string deliveryId ) : System.Xml.Linq.XDocument
deliveryId string deliveryId
return System.Xml.Linq.XDocument

DeleteListingFromWatchlist() public method

Performs the My Trade Me Method: Save a listing to a member’s watchlist. DELETE

Will remove the listing with the listingId provided from the members watchlist. Creates a query string using the listingId provided.

REQUIRES AUTHENTICATION.
public DeleteListingFromWatchlist ( string listingId ) : System.Xml.Linq.XDocument
listingId string The id of the listing that will be removed from the watchlist.
return System.Xml.Linq.XDocument

DeleteListingStatus() public method

Performs the My Trade Me Method: Deletes the status from a listing in the authenticated user’s Sold Items list. DELETE

REQUIRES AUTHENTICATION.
public DeleteListingStatus ( string purchaseId ) : System.Xml.Linq.XDocument
purchaseId string The ID of the purchase to modify.
return System.Xml.Linq.XDocument

DeleteListingStatus() public method

Performs the My Trade Me Method: Deletes the status from a listing in the authenticated user’s Sold Items list. DELETE

REQUIRES AUTHENTICATION.
public DeleteListingStatus ( string listingId, string offerId ) : System.Xml.Linq.XDocument
listingId string The id of the listing that will be removed from the watchlist.
offerId string The ID of the note.
return System.Xml.Linq.XDocument

DeleteNote() public method

Performs the My Trade Me Method: Removes the note from a listing. DELETE

REQUIRES AUTHENTICATION.
public DeleteNote ( string listingId, string noteId, string offerId ) : System.Xml.Linq.XDocument
listingId string The id of the listing that will be removed from the watchlist.
noteId string The ID of the note.
offerId string The ID of the offer the note is associated with. Should be 0 if the note is not associated with a fixed price offer.
return System.Xml.Linq.XDocument

FixedPriceOffers() public method

Performs the My Trade Me Method: Retrieve a list of Fixed Price Offers.

Creates a query string and performs the request.

REQUIRES AUTHENTICATION.
public FixedPriceOffers ( ) : FixedPriceOffers
return FixedPriceOffers

FixedPriceOffers() public method

Performs the My Trade Me Method: Retrieve a list of Fixed Price Offers

using the "query" string provided - should be the "MyTradeMe/FixedPriceOffers.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public FixedPriceOffers ( string query ) : FixedPriceOffers
query string The query string that will be added to the base url and used to connect to the API.
return FixedPriceOffers

GetBlacklistedMembers() public method

Retrieves a list of all the members on the authenticated user’s blacklist. GET

REQUIRES AUTHENTICATION.
public GetBlacklistedMembers ( ) : Blacklist
return Blacklist

GetEmailPreferences() public method

Retrieves the authenticated user’s email preferences. GET

REQUIRES AUTHENTICATION.
public GetEmailPreferences ( ) : EmailOptions
return EmailOptions

GetJobAgentReport() public method

Retrieves the Job Agent report for the authenticated user. GET

REQUIRES AUTHENTICATION.
public GetJobAgentReport ( ) : JobAgentReport
return JobAgentReport

GetLisingFees() public method

Retrieves information about fees for a single listing. GET

REQUIRES AUTHENTICATION.
public GetLisingFees ( string listingId ) : SellingFee
listingId string The ID of listing
return SellingFee

GetListOfDeliveryAddresses() public method

Retrieves a list of delivery addresses for the authenticated user. GET

REQUIRES AUTHENTICATION.
public GetListOfDeliveryAddresses ( ) : Address
return Address

GetNote() public method

Retrieves the note for a listing, if there is one. GET

REQUIRES AUTHENTICATION.
public GetNote ( string listingId ) : NoteResponse
listingId string The ID of the listing to retrieve the note for.
return NoteResponse

GetPayNowLedgerBySettlement() public method

Returns Pay Now ledger entries for a settlement into the authenticated user’s bank account. GET

REQUIRES AUTHENTICATION.
public GetPayNowLedgerBySettlement ( string batchId ) : PayNowLedger
batchId string The ID of the settlement. This can be retrieved from the Pay Now ledger API.
return PayNowLedger

GetProductMappings() public method

Retrieves a list of product codes and stock levels associated with the authenticated user’s active listings. GET The results will return data from feeds and My Products.

REQUIRES AUTHENTICATION.
public GetProductMappings ( ) : ProductMappings
return ProductMappings

GetPropertyAgentReport() public method

Retrieves the Property Agent report for the authenticated user. GET

REQUIRES AUTHENTICATION.
public GetPropertyAgentReport ( ) : PropertyAgentReport
return PropertyAgentReport

GetWeeklySalesStats() public method

Retrieve sales statistics for the authenticated user. GET

REQUIRES AUTHENTICATION.
public GetWeeklySalesStats ( ) : WeeklySales
return WeeklySales

LostItems() public method

Performs the My Trade Me Method: Retrieve a list of lost items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public LostItems ( LostItemsCriteria criteria, string page, string rows ) : Listings
criteria LostItemsCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return Listings

LostItems() public method

Performs the My Trade Me Method: Retrieve a list of lost items GET

using the "query" string provided - should be the "MyTradeMe/Lost.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public LostItems ( string query ) : Listings
query string The query string that will be added to the base url and used to connect to the API with.
return Listings

MemberLedger() public method

Performs the My Trade Me method: Retrieve a member’s ledger.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public MemberLedger ( MemberLedgerCriteria criteria, string page, string rows ) : MemberLedger
criteria MemberLedgerCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return MemberLedger

MemberLedger() public method

Performs the My Trade Me method: Retrieve a member’s ledger

using the "query" string provided - should be the "MyTradeMe/MemberLedger/All.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public MemberLedger ( string query ) : MemberLedger
query string The query string that will be added to the base url and used to connect to the API.
return MemberLedger

MemberProfileSummary() public method

Performs the My Trade Me Method: Retrieves statistics and profile information for the authenticated user.

Constructs the query and performs the request.

REQUIRES AUTHENTICATION.
public MemberProfileSummary ( ) : MemberSummary
return MemberSummary

MemberProfileSummary() public method

Performs the My Trade Me Method: Retrieves statistics and profile information for the authenticated user.

using the "query" string provided - should be the "MyTradeMe/Summary.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public MemberProfileSummary ( string query ) : MemberSummary
query string The query string that will be added to the base url and used to connect to the API.
return MemberSummary

MyTradeMeMethods() public method

Initializes a new instance of the MyTradeMeMethods class.
public MyTradeMeMethods ( ConnectionMethods connect ) : System
connect ConnectionMethods A ConnectionMethods class used to make calls to the API
return System

PayNowLedger() public method

Performs the My Trade Me Method: Retrieve a member’s Pay Now ledger

using the "query" string provided - should be the "MyTradeMe/PayNowLedger/{criteria}.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public PayNowLedger ( string query ) : PayNowLedger
query string The query string that will be added to the base url and used to connect to the API.
return PayNowLedger

PayNowLedgerWithCriteria() public method

Performs the My Trade Me Method: Retrieve a member’s Pay Now ledger.

Creates a query string using the parameter provided - parameter can be null if it is not required for the request.

REQUIRES AUTHENTICATION.
public PayNowLedgerWithCriteria ( PayNowLedgerCriteria criteria ) : PayNowLedger
criteria PayNowLedgerCriteria The criteria.
return PayNowLedger

RefundPayNowPayment() public method

Refunds a Pay Now payment where the authenticated user is the seller. POST

REQUIRES AUTHENTICATION.
public RefundPayNowPayment ( PayNowRefundRequest request ) : System.Xml.Linq.XDocument
request PayNowRefundRequest PayNowRefundRequest
return System.Xml.Linq.XDocument

RemoveFeedback() public method

Removes feedback the authenticated user has posted against a listing. DELETE

REQUIRES AUTHENTICATION.
public RemoveFeedback ( string feedbackId ) : System.Xml.Linq.XDocument
feedbackId string The ID of the feedback to remove.
return System.Xml.Linq.XDocument

RemoveMemberFromBlacklist() public method

Removes a member from the authenticated user’s blacklist. DELETE

REQUIRES AUTHENTICATION.
public RemoveMemberFromBlacklist ( string memberId ) : System.Xml.Linq.XDocument
memberId string memberId
return System.Xml.Linq.XDocument

RespondToFeedback() public method

Replies to feedback placed against a listing where the authenticated user was the seller. POST

REQUIRES AUTHENTICATION.
public RespondToFeedback ( FeedbackReplyRequest request ) : System.Xml.Linq.XDocument
request FeedbackReplyRequest FeedbackReplyRequest
return System.Xml.Linq.XDocument

SaveListingToWatchlist() public method

Performs the My Trade Me Method: Adds a listing to the authenticated user’s watchlist with the option to control when and if an email is sent to the member warning that the auction is closing soon. POST

REQUIRES AUTHENTICATION.
public SaveListingToWatchlist ( SaveToWatchlistRequest request ) : System.Xml.Linq.XDocument
request SaveToWatchlistRequest SaveToWatchlistRequest.
return System.Xml.Linq.XDocument

SaveOrUpdateListingStatus() public method

Saves a status to a listing in the authenticated user’s Sold Items list. POST

REQUIRES AUTHENTICATION.
public SaveOrUpdateListingStatus ( string purchaseId, string stat ) : StatusResponse
purchaseId string The ID of the purchase.
stat string The status you want to save, should be one of the following: EmailSent, PaymentReceived, GoodsShipped, SaleCompleted.
return StatusResponse

SaveOrUpdateListingStatus() public method

Saves a status to a listing in the authenticated user’s Sold Items list. POST

REQUIRES AUTHENTICATION.
public SaveOrUpdateListingStatus ( string listingId, string offerId, string stat ) : StatusResponse
listingId string The id of the listing that will be removed from the watchlist.
offerId string The ID of the note.
stat string The status you want to save, should be one of the following: EmailSent, PaymentReceived, GoodsShipped, SaleCompleted.
return StatusResponse

SellingItems() public method

Performs the MyTradeMe method: Retrieve a list of items currently for sale

using the "query" string provided - should be the "MyTradeMe/SellingItems/All.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public SellingItems ( string query ) : Items
query string The query string that will be added to the base url and used to connect to the API.
return Items

SellingItemsWithCriteria() public method

Performs the MyTradeMe method: Retrieve a list of items currently for sale.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public SellingItemsWithCriteria ( SellingItemsCriteria criteria ) : Items
criteria SellingItemsCriteria The criteria.
return Items

SetEmailPreferences() public method

Sets the authenticated user’s email preferences. POST

REQUIRES AUTHENTICATION.
public SetEmailPreferences ( EmailOptions request ) : System.Xml.Linq.XDocument
request EmailOptions EmailOptions
return System.Xml.Linq.XDocument

SoldItems() public method

Performs the My Trade Me Method: Retrieve a list of sold items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public SoldItems ( SoldItemsCriteria criteria, string page, string rows ) : SoldItems
criteria SoldItemsCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return SoldItems

SoldItems() public method

Performs the My Trade Me Method: Retrieve a list of sold items

using the "query" string provided - should be the "MyTradeMe/SoldItems/{criteria}.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public SoldItems ( string query ) : SoldItems
query string The query string that will be added to the base url and used to connect to the API.
return SoldItems

UnsoldItems() public method

Performs the My Trade Me Method: Retrieve a list of unsold items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public UnsoldItems ( UnsoldItemsCriteria criteria, string page, string rows ) : UnsoldItems
criteria UnsoldItemsCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return UnsoldItems

UnsoldItems() public method

Performs the My Trade Me Method: Retrieve a list of unsold items

using the "query" string provided - should be the "MyTradeMe/UnsoldItems.xml" part of the url it shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public UnsoldItems ( string query ) : UnsoldItems
query string The query string that will be added to the base url and used to connect to the API.
return UnsoldItems

UpdateDeliveryAddress() public method

Modifies a delivery addresses in the authenticated user’s profile. POST

REQUIRES AUTHENTICATION.
public UpdateDeliveryAddress ( DeliveryAddress request ) : System.Xml.Linq.XDocument
request DeliveryAddress DeliveryAddress
return System.Xml.Linq.XDocument

UpdateFeedback() public method

Modifies feedback the authenticated user has posted against a listing. POST

REQUIRES AUTHENTICATION.
public UpdateFeedback ( FeedbackUpdateRequest request ) : System.Xml.Linq.XDocument
request FeedbackUpdateRequest FeedbackUpdateRequest
return System.Xml.Linq.XDocument

Watchlist() public method

Performs the My Trade Me Method: Retrieve a member’s watchlist.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public Watchlist ( WatchlistCriteria criteria, string page, string rows ) : Watchlist
criteria WatchlistCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return Watchlist

Watchlist() public method

Performs the My Trade Me Method: Retrieve a member’s watchlist

using the "query" string provided - should be the "MyTradeMe/Watchlist.xml part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public Watchlist ( string query ) : Watchlist
query string The query string that will be added to the base url and used to connect to the API.
return Watchlist

WonItems() public method

Performs the My Trade Me Method: Retrieve a list of won items.

Creates a query string using the parameters provided - parameters can be null if they are not required for the request.

REQUIRES AUTHENTICATION.
public WonItems ( WonItemsCriteria criteria, string page, string rows ) : WonItems
criteria WonItemsCriteria The criteria.
page string Page number.
rows string Number of rows per page.
return WonItems

WonItems() public method

Performs the My Trade Me Method: Retrieve a list of won items

using the "query" string provided - should be the "MyTradeMe/Won.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

REQUIRES AUTHENTICATION.
public WonItems ( string query ) : WonItems
query string The query string that will be added to the base url and used to connect to the API.
return WonItems