0
eBay APIのfindItemsByProductを使用して固定価格のリスティングで利用可能な商品の数を検索しようとしていますが、その情報でプロパティを見つけることができませんでした。eBay API FindItemsByProduct固定価格の商品で返品することができません
この呼び出しで利用可能なアイテムの数にアクセスできるかどうか、誰かが知っていますか?使用できる別のAPIがありますか?
using (FindingServicePortTypeClient client = new FindingServicePortTypeClient())
{
MessageHeader header = MessageHeader.CreateHeader("My-CustomHeader", "http://www.mycustomheader.com","Custom Header");
using (OperationContextScope scope = new OperationContextScope(client.InnerChannel))
{
OperationContext.Current.OutgoingMessageHeaders.Add(header);
HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();
httpRequestProperty.Headers.Add("X-EBAY-SOA-SECURITY-APPNAME", "INSERT APP ID");
httpRequestProperty.Headers.Add("X-EBAY-SOA-OPERATION-NAME", "findItemsByProduct");
httpRequestProperty.Headers.Add("X-EBAY-SOA-GLOBAL-ID", "EBAY-US");
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;
FindItemsByProductRequest request = new FindItemsByProductRequest();
ProductId id = new ProductId();
request.productId = id;
request.productId.type = "UPC";
request.productId.Value = "783722722428";
request.sortOrder = SortOrderType.PricePlusShippingLowest;
FindItemsByProductResponse response = client.findItemsByProduct(request);
foreach (var item in response.searchResult.item)
{
Console.WriteLine(item.title);
Console.WriteLine("Item Condition: " + Item.condition.conditionDisplayName);
Console.WriteLine("Item ID: " + item.itemId);
Console.WriteLine("URL: " +item.viewItemURL);
Console.WriteLine("Listing Type: " + item.listingInfo.listingType);
Console.WriteLine("Price: " + item.sellingStatus.currentPrice.Value);
Console.WriteLine("Shipping Type: " + item.shippingInfo.shippingType);
if (item.shippingInfo.shippingServiceCost != null)
{
Console.WriteLine("Shipping: " + item.shippingInfo.shippingServiceCost.Value); }
// Console.WriteLine(item.condition.conditionDisplayName);
//Console.WriteLine(item.galleryPlusPictureURL);
Console.WriteLine("");
Console.WriteLine("");
} // if
} // foreach
} // using
} // using
が見える使います。私は、APIを使って情報を取り戻すことができるようにしたいと考えていました。私は自分の価格が他の売り手とどのように比較されているかを示すレポートを自動化しようとしています。情報のおかげで。 – JMS
こんにちは、@JMSはあなたがこれに合っているかどうかを調べることを意味しますhttp://developer.ebay.com/Devzone/shopping/docs/CallRef/FindProducts.html#samplebasic、私はこの機能を使用したことはありませんが、今日夜になると、テストのために1つのラボを作成してから、フィードバックをお送りします。私の会社では、私たちはeBayにリストされたリスト製品を持っています。 –