public StatusMailing StatusMailling(int mailingId) { var campaignResponse = new StatusMailing(); (StatusMailing result, string statusCode, string message) = _api.Get <StatusMailing>($"api/v1/oauth/mailing/{mailingId}/status"); if (result != null) { campaignResponse = result; } return(campaignResponse); }
public Pessoa BuscarPessoa(string docTipo, string doc) { var stringSearch = $"/ApiSisConsulta/Bases/LocalizacaoCompleta?documento={doc}&tipoDoc={docTipo}&cliente={_cliente}&chavekey={_chaveKey}"; var consumer = new ApiConsumerHelper("https://api.sisconsulta.com"); var result = consumer.Get <Pessoa>(stringSearch); if ((result.result == null || result.result.NewDataSet == null || result.result.NewDataSet.ConsumoPF == null)) { consumer = new ApiConsumerHelper("https://api2.sisconsulta.com"); result = consumer.Get <Pessoa>(stringSearch); } return(result.result); }