AmazonMWS1.GetMatchingProduct.GetProductInformation C# (CSharp) Method

GetProductInformation() public method

public GetProductInformation ( string asin ) : void
asin string
return void
        public void GetProductInformation(string asin)
        {
            GetMatchingProductForIdRequest request = new GetMatchingProductForIdRequest();

            request.IdList = new IdListType();
            // param IdType
            request.IdList.Id = new List<string>();
            // add the UPC to the list
            request.IdType = "ASIN";
            request.IdList.Id.Add(asin);
            request.SellerId = merchantId;
            request.MarketplaceId = marketplaceId;

            InvokeGetMatchingProductForId(service, request);

            GetLowestOfferListingsForASINRequest request2 = new GetLowestOfferListingsForASINRequest();

            request2.ASINList = new ASINListType();
            request2.ASINList.ASIN.Add(asin);
            request2.MarketplaceId = marketplaceId;
            request2.SellerId = merchantId;

            InvokeGetLowestOfferListingsForASIN(service, request2);

            GetCompetitivePricingForASINRequest request3 = new GetCompetitivePricingForASINRequest();

            request3.ASINList = new ASINListType();
            request3.ASINList.ASIN.Add(asin);
            request3.MarketplaceId = marketplaceId;
            request3.SellerId = merchantId;

            InvokeGetCompetitivePricingForASIN(service, request3);
        }

Usage Example

Example #1
0
        private static void Main(string[] args)
        {
            /************************************************************************
             * Access Key ID and Secret Access Key ID
             ***********************************************************************/
            String accessKeyId     = "<Access Key ID>";
            String secretAccessKey = "<Secret Access Key>";
            String merchantId      = "<Merchant Id>";
            String marketplaceId   = "Market Place Id";

            /************************************************************************
             * The application name and version are included in each MWS call's
             * HTTP User-Agent field.
             ***********************************************************************/
            const string applicationName    = "<Application Name>";
            const string applicationVersion = "<Version>";


            /***********************************************************************
            * Amazon MWS access information will be passed to the class
            ***********************************************************************/
            GetMatchingProduct mp = new GetMatchingProduct(accessKeyId, secretAccessKey, merchantId, marketplaceId, applicationName, applicationVersion);

            mp.GetProductInformation("<ASIN>"); //Place your book ASIN here

            /***********************************************************************
            * Demo Stuff
            ***********************************************************************/
            Console.WriteLine();
            Console.WriteLine("Press Enter to Exit");
            Console.ReadLine();
        }
All Usage Examples Of AmazonMWS1.GetMatchingProduct::GetProductInformation