Apiki_Buscape_API.Apiki_Buscape_API.ViewSellerDetails C# (CSharp) Method

ViewSellerDetails() public method

Recupera detalhes da loja/empresa
public ViewSellerDetails ( int sellerId, string callback ) : string
sellerId int Código da loja/empresa
callback string Função de retorno a ser executada caso esteja usando json
return string
        public string ViewSellerDetails(int sellerId, string callback)
        {
            string param = string.Empty;

            if (sellerId != 0)
                param = "?sellerId=" + sellerId.ToString();
            else
                this.ShowErrors(string.Format("ID da loja/empresa requerido na função <b>{0}</b>.", Services.viewSellerDetails));

            param += (!string.IsNullOrEmpty(callback)) ? "&callback=" + callback : string.Empty;
            param += (!string.IsNullOrEmpty(this.sourceId)) ? "&sourceId=" + this.sourceId : string.Empty;
            param += this.isJson;

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

            return GetContent(url);
        }