Esempio n. 1
0
 private KeepaRequest getSellerRequest(AmazonLocale domainId, string[] seller)
 {
     base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_SELLER, "seller");
     this.parameter.Add("domain", domainId.ToString("D"));
     this.parameter.Add("seller", Tools.Utilities.arrayToCsv(seller));
     return(this);
 }
Esempio n. 2
0
 private KeepaRequest getBestSellersRequest(AmazonLocale domainId, string productGroup)
 {
     base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_BEST_SELLERS, "bestsellers");
     this.parameter.Add("category", productGroup);
     this.parameter.Add("domain", domainId.ToString("D"));
     return(this);
 }
Esempio n. 3
0
        private KeepaRequest getSellerRequest(AmazonLocale domainId, string seller, bool storefront)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_SELLER, "seller");
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("seller", seller);

            if (storefront)
            {
                this.parameter.Add("storefront", "1");
            }
            return(this);
        }
Esempio n. 4
0
        private KeepaRequest getCategoryLookupRequest(AmazonLocale domainId, bool parents, long category)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_CATEGORY_LOOKUP, "category");
            this.parameter.Add("category", category.ToString());
            this.parameter.Add("domain", domainId.ToString("D"));

            if (parents)
            {
                this.parameter.Add("parents", "1");
            }
            return(this);
        }
Esempio n. 5
0
        private KeepaRequest getProductSearchRequest(AmazonLocale domainId, string term, int?stats)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_PRODUCT_SEARCH, "search");
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("type", "product");
            this.parameter.Add("term", term);

            if (stats != null && stats > 0)
            {
                this.parameter.Add("stats", stats.ToString());
            }
            return(this);
        }
Esempio n. 6
0
        private KeepaRequest getCategorySearchRequest(AmazonLocale domainId, string term, bool parents)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_CATEGORY_SEARCH, "search");
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("type", "category");
            this.parameter.Add("term", term);

            if (parents)
            {
                this.parameter.Add("parents", "1");
            }
            return(this);
        }
Esempio n. 7
0
        private KeepaRequest getProductRequest(AmazonLocale domainId, int?stats, int?offers, string[] asins)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_PRODUCT, "product");
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("asin", Tools.Utilities.arrayToCsv(asins));
            if (stats != null && stats > 0)
            {
                this.parameter.Add("stats", stats.ToString());
            }

            if (offers != null && offers > 0)
            {
                this.parameter.Add("offers", offers.ToString());
            }
            return(this);
        }
Esempio n. 8
0
        private KeepaRequest getProductSearchRequest(AmazonLocale domainId, string term, int?stats, int?update, bool history, bool asinsOnly)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_PRODUCT_SEARCH, "search");
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("type", "product");
            this.parameter.Add("term", term);
            this.parameter.Add("update", update.ToString());
            this.parameter.Add("history", history ? "1" : "0");
            this.parameter.Add("asins-only", asinsOnly ? "1" : "0");

            if (stats != null && stats > 0)
            {
                this.parameter.Add("stats", stats.ToString());
            }
            return(this);
        }
Esempio n. 9
0
        private KeepaRequest getProductRequest(AmazonLocale domainId, int?offers, string statsStartDate, string statsEndDate, int update, bool history, string[] asins)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_PRODUCT, "product");
            this.parameter.Add("asin", Tools.Utilities.arrayToCsv(asins));
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("update", update.ToString());
            this.parameter.Add("history", history ? "1" : "0");

            if (statsStartDate != null && statsEndDate != null)
            {
                this.parameter.Add("stats", statsStartDate + "," + statsEndDate);
            }

            if (offers != null && offers > 0)
            {
                this.parameter.Add("offers", offers.ToString());
            }
            return(this);
        }
Esempio n. 10
0
        private KeepaRequest getProductByCodeRequest(AmazonLocale domainId, int?offers, string statsStartDate, string statsEndDate, int update, bool history, bool stock, bool rental, bool rating, bool fbafees, string[] codes)
        {
            base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_PRODUCT_BY_CODE, "product");
            this.parameter.Add("code", Tools.Utilities.arrayToCsv(codes));
            this.parameter.Add("domain", domainId.ToString("D"));
            this.parameter.Add("update", update.ToString());
            this.parameter.Add("history", history ? "1" : "0");
            this.parameter.Add("stock", stock ? "1" : "0");
            this.parameter.Add("rental", rental ? "1" : "0");
            this.parameter.Add("rating", rating ? "1" : "0");
            this.parameter.Add("fbafees", fbafees ? "1" : "0");

            if (statsStartDate != null && statsEndDate != null)
            {
                this.parameter.Add("stats", statsStartDate + "," + statsEndDate);
            }

            if (offers != null && offers > 0)
            {
                this.parameter.Add("offers", offers.ToString());
            }
            return(this);
        }
Esempio n. 11
0
 private KeepaRequest getTopSellerRequest(AmazonLocale domainId)
 {
     base.GetBaseRequest(ApiSpecificRequestTypes.KEEPA_TOP_SELLER, "topseller");
     this.parameter.Add("domain", domainId.ToString("D"));
     return(this);
 }