asp.net 및 C#을 사용하는 Amazon Product Advertising API를 사용하여 책을 가져오고 싶습니다. 모든 가이드와 코드는 책을 검색 할 수있는 단일 방법을 제공하지 않으므로 혼란 스럽습니다. 서비스를 호출하고 ISBN을 기반으로 책을 가져 오는 데 사용할 수있는 단일 스텁이 있습니까? 감사합니다.Amazon Product Advertising API asp.net 및 C#
4
A
답변
0
다운로드 할 수있는 좋은 샘플 솔루션이 있습니다. http://aws.amazon.com/code/2480?_encoding=UTF8&queryArg=searchQuery&x=0&fromSearch=1&y=0&searchPath=code&searchQuery=Advertising
그들은 다음의 호출과 같은 수 있도록, 당신에게 SignedRequestHelper라는 클래스를 제공합니다 :
public static void Main()
{
SignedRequestHelper helper = new SignedRequestHelper(MY_AWS_ACCESS_KEY_ID, MY_AWS_SECRET_KEY, DESTINATION);
/*
* The helper supports two forms of requests - dictionary form and query string form.
*/
String requestUrl;
String title;
/*
* Here is an ItemLookup example where the request is stored as a dictionary.
*/
IDictionary<string, string> r1 = new Dictionary<string, String>();
r1["Service"] = "AWSECommerceService";
r1["Version"] = "2009-03-31";
r1["Operation"] = "ItemLookup";
r1["ItemId"] = ITEM_ID;
r1["ResponseGroup"] = "Small";
/* Random params for testing */
r1["AnUrl"] = "http://www.amazon.com/books";
r1["AnEmailAddress"] = "[email protected]";
r1["AUnicodeString"] = "αβγδεٵٶٷٸٹٺチャーハン叉焼";
r1["Latin1Chars"] = "ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJij";
requestUrl = helper.Sign(r1);
title = FetchTitle(requestUrl);
System.Console.WriteLine("Method 1: ItemLookup Dictionary form.");
System.Console.WriteLine("Title is \"" + title + "\"");
System.Console.WriteLine();
}
당신은 (예 같은) ItemLookup를 사용하지만 ISBN에 IdType를 설정해야합니다. 그런 다음 ItemId를 실제 ISBN으로 설정하십시오. 여기에 세부 사항은 ItemLookup에 있습니다
docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?ItemLookup.html
0
내가 그 샘플을 사용할 때이 얻을. 최근에 API가 변경된 것처럼 보입니다. 책이 라이브러리를 설치 가져올 수
System.InvalidOperationException: There is an error in the XML document. ---> Sy
stem.InvalidOperationException: <ItemLookupResponse xmlns='http://webservices.am
azon.com/AWSECommerceService/2011-08-01'> was not expected.
0
(설치 패키지 Nager.AmazonProductAdvertising를) https://www.nuget.org/packages/Nager.AmazonProductAdvertising/
예 :이 예에서는 ItemSearchRequest에 대해 아무것도
var authentication = new AmazonAuthentication();
authentication.AccessKey = "accesskey";
authentication.SecretKey = "secretkey";
var wrapper = new AmazonWrapper(authentication, AmazonEndpoint.UK);
//The Lord of the Rings
var result = wrapper.Lookup("978-0261102385");
관련 문제
- 1. C# Amazon Product Advertising API
- 2. Amazon Product Advertising API : BrowseNodeId에 대한 값이 XXX가 아닙니다.
- 3. Amazon Product API and Rails
- 4. Rails 앱에서 Amazon Product Advertising API와 어떻게 상호 작용합니까?
- 5. Amazon Product API 모든 제품 검색
- 6. Amazon Product Availability
- 7. Amazon Product Search - 서비스 URI 란 무엇입니까?
- 8. Amazon S3 및 Cloudfront with Java API
- 9. AMAZON API 인증 오류
- 10. Amazon Reseller API
- 11. python-amazon-product-api item_lookup function을 사용하여 아마존에서 항목에 대한 가격 할인 목록을 얻는 방법은 무엇입니까?
- 12. Amazon Product API : "귀하의 요청에 필수 매개 변수 조합이 없습니다."Blended ItemSearch
- 13. Amazon MWS API 요청 문제 해결
- 14. Amazon Product API에서 Kindle eBook 대출 속성을 검색하는 방법은 무엇입니까?
- 15. 웨이브 메이커 및 아마존 제품 광고 API 경험이 있습니까?
- 16. Amazon Web Services : 어디에서 도움을 받으시겠습니까?
- 17. "Product"의 추상 메서드 - 팩토리 메서드 C#
- 18. ASP.NET Amazon ItemSearch
- 19. Python 용 Amazon API 라이브러리?
- 20. Amazon API - 제품 설명 검색
- 21. Google지도 Api 및 C#
- 22. Yahoo 연락처 api asp.net C#
- 23. 코코아 응용 프로그램 - 내 코코아 응용 프로그램 내에서 Amazon Product Search를 통합 할 수 있습니까
- 24. Amazon 제품 API 응답 그룹 및 기본 결과
- 25. win api 및 C# - 데스크톱
- 26. Systeminfo : Product ID
- 27. 소셜 네트워킹 API 및 C/C++
- 28. Amazon S3 액세스 제어 목록 및 Amazon SDK for .NET
- 29. Amazon API ItemSearch returns (400) Bad Request
- 30. Asp.net을 사용하는 Amazon Book Search API
동정. – UpTheCreek