Apiki_Buscape_API.Apiki_Buscape_API.FindProductList C# (CSharp) Method

FindProductList() public method

Recupera uma lista de produtos únicos
public FindProductList ( FiltrosFindProducts filtros ) : string
filtros FiltrosFindProducts Objeto do tipo FiltrosFindProducts que contém todas as opções de filtragem.
return string
        public string FindProductList(FiltrosFindProducts filtros)
        {
            string param = filtros.MakeUrlParameters();
            string paramLomadee = string.Empty;

            if (string.IsNullOrEmpty(param))
                this.ShowErrors("Pelo menos um parâmetro de pesquisa é requerido na função " + Services.findProductList);

            param += (!string.IsNullOrEmpty(this.sourceId)) ? "&sourceId=" + this.sourceId : string.Empty;
            paramLomadee = (filtros.IsLomadee) ? "/lomadee" : string.Empty;

            string url = string.Format("http://{0}.buscape.com/service/{1}{5}/{2}/{3}/{4}", this.server, Services.findProductList, this.applicationId, this.countryCode, param, paramLomadee);

            return GetContent(url);
        }

Same methods

Apiki_Buscape_API::FindProductList ( int categoryId, string keyword, string callback ) : string
Apiki_Buscape_API::FindProductList ( int categoryId, string keyword, string callback, bool isLomadee ) : string