Пример #1
0
        public static string Download(MERCHANT merchant)
        {
            var credCache = new CredentialCache
            {
                {
                    new Uri(DIGEST_URI), "Digest",
                    new NetworkCredential(Config.AMAZON_USERNAME, Config.AMAZON_PASSWORD)
                }
            };

            var client = new HttpClient(new HttpClientHandler {
                Credentials = credCache
            });
            var inFile = AbstractDataFeed.DownloadFeed(URL, client);

            return(AbstractDataFeed.ExtractContents(inFile));
        }
Пример #2
0
        /* Public Methods. */

        public static string Download(MERCHANT merchant)
        {
            var inFile = AbstractDataFeed.DownloadFeed(String.Format(URL, (int)merchant), new HttpClient());

            return(AbstractDataFeed.ExtractContents(inFile));
        }