本文介绍了亚马逊itemsearch给我错误400!为什么会这样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

app.config



program.cs

app.config

program.cs

    static void Main(string[] args)
    {
        // Instantiate Amazon ProductAdvertisingAPI client
        AWSECommerceServicePortTypeClient amazonClient = new AWSECommerceServicePortTypeClient();

        // prepare an ItemSearch request
        ItemSearchRequest request = new ItemSearchRequest();
        request.SearchIndex = "Books";
        request.Title = "WCF";
        request.ResponseGroup = new string[] { "Small" };

        ItemSearch itemSearch = new ItemSearch();
        itemSearch.Request = new ItemSearchRequest[] { request };
        itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings["accessKeyId"];
        itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings["secretKey"];
        itemSearch.AssociateTag = "my value";

        // send the ItemSearch request
        ItemSearchResponse response = amazonClient.ItemSearch(itemSearch);

        // write out the results from the ItemSearch request
        foreach (var item in response.Items[0].Item)
        {
            Console.WriteLine(item.ItemAttributes.Title);
        }
        Console.WriteLine("done...enter any key to continue>");
        Console.ReadLine();

    }
}





我的尝试:



我试图签名但没有希望



在应用程序中签名的行为。 config build成功芽下有蓝线表示无效的子元素signedBehavior,是问题但是构建成功我不知道任何人有任何想法



What I have tried:

I tried to sign it but with no hope

signingBehavior which in the app.config build succeded bud has blue line under it said invalid child element signingBehavior , is that the problem but the build succeeded I don't know any one have any idea

推荐答案


这篇关于亚马逊itemsearch给我错误400!为什么会这样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 21:36