/// <summary> /// Remove listings from GoDaddy Auction /// </summary> /// <param name="request"></param> /// <returns></returns> public async Task <ListingActionResponse> RemoveAuctionListings(AggreementRetrieve request) { var client = GetBaseHttpClient(); var response = await client.DeleteAsync($"aftermarket/listings{QueryStringBuilder.RequestObjectToQueryString(request)}"); await CheckResponseMessageIsValid(response); return(await response.Content.ReadAsAsync <ListingActionResponse>()); }
/// <summary> /// Retrieve Legal Agreements for provided agreements keys /// </summary> /// <param name="request"></param> /// <param name="XPrivateLabelId"></param> /// <param name="XMarketId"></param> /// <returns></returns> public async Task <List <LegalAgreementResponse> > RetrieveAggreements(AggreementRetrieve request, string XPrivateLabelId = null, string XMarketId = null) { var client = GetBaseHttpClient(); if (XPrivateLabelId != null) { client.DefaultRequestHeaders.Add("X-Private-Label-Id", XPrivateLabelId); } if (XMarketId != null) { client.DefaultRequestHeaders.Add("X-Market-Id", XMarketId); } var response = await client.GetAsync($"aggreements{QueryStringBuilder.RequestObjectToQueryString(request)}"); await CheckResponseMessageIsValid(response); return(await response.Content.ReadAsAsync <List <LegalAgreementResponse> >()); }