From 06a1b2594fa5007ae70189b73819e817016c2bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20de=20Jesus=20Filho?= Date: Thu, 10 Oct 2024 18:06:57 -0300 Subject: [PATCH] Feat: inclui stf no mni --- R/mni_consultar_processo.R | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/R/mni_consultar_processo.R b/R/mni_consultar_processo.R index f23ddee..e8938c4 100644 --- a/R/mni_consultar_processo.R +++ b/R/mni_consultar_processo.R @@ -43,12 +43,17 @@ mni_consultar_processo <- function(tribunal = "tjsp", processo <- stringr::str_remove_all(processo,"\\D") - url <-"http://esaj.tjsp.jus.br/mniws/servico-intercomunicacao-2.2.2/intercomunicacao?wsdl" + if (toupper(tribunal) = "STF"){ + url <-"https://wst.stf.jus.br/servico-intercomunicacao-2.2.2/intercomunicacao?wsdl" + } else if (toupper(tribunal) == "TJSP"){ + + url <- "http://esaj.tjsp.jus.br/mniws/servico-intercomunicacao-2.2.2/intercomunicacao?wsdl" + + } - purrr::walk(processo, purrr::possibly(~{ - + ## A op\u00E7\u00E3o por documentos n\u00E3o convive com cabe\u00E7alho e movimentos. corpo <- criar_corpo(