TradeMe.Api.Client.MyTradeMeMethods.DeleteListingFromWatchlist C# (CSharp) Method

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
        public XDocument DeleteListingFromWatchlist(string listingId)
        {
            var query = String.Format(Constants.Culture, "{0}/{1}/{2}{3}", Constants.MY_TRADEME, Constants.WATCHLIST, listingId, Constants.XML);
            return _connection.Post(null, query, true);
        }