<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://brapci.inf.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Excel%3AAPI_FULL_REST</id>
	<title>Excel:API FULL REST - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://brapci.inf.br/wiki/index.php?action=history&amp;feed=atom&amp;title=Excel%3AAPI_FULL_REST"/>
	<link rel="alternate" type="text/html" href="https://brapci.inf.br/wiki/index.php?title=Excel:API_FULL_REST&amp;action=history"/>
	<updated>2026-05-15T18:53:31Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://brapci.inf.br/wiki/index.php?title=Excel:API_FULL_REST&amp;diff=1394&amp;oldid=prev</id>
		<title>Renefgj: Criou página com &#039;=Função para consultar API=  Para criar uma nova função, que acessa API no Excel, pressione em seu teclado ALT + F11. Surgirá uma nova janela (editor Visual Basic). No me...&#039;</title>
		<link rel="alternate" type="text/html" href="https://brapci.inf.br/wiki/index.php?title=Excel:API_FULL_REST&amp;diff=1394&amp;oldid=prev"/>
		<updated>2023-07-13T20:27:59Z</updated>

		<summary type="html">&lt;p&gt;Criou página com &amp;#039;=Função para consultar API=  Para criar uma nova função, que acessa API no Excel, pressione em seu teclado ALT + F11. Surgirá uma nova janela (editor Visual Basic). No me...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Função para consultar API=&lt;br /&gt;
&lt;br /&gt;
Para criar uma nova função, que acessa API no Excel, pressione em seu teclado ALT + F11.&lt;br /&gt;
Surgirá uma nova janela (editor Visual Basic). No menu acesse INSERIR/MÓDULO, e cole o texto abaixo:&lt;br /&gt;
&lt;br /&gt;
 Function restAPI(name As String)    &lt;br /&gt;
    Dim strUrl As String&lt;br /&gt;
    Dim xmlhttp As Object&lt;br /&gt;
    Set xmlhttp = CreateObject(&amp;quot;MSXML2.serverXMLHTTP&amp;quot;)    &lt;br /&gt;
    strUrl = &amp;quot;http://brp/api/authority/put/&amp;quot; + name    &lt;br /&gt;
    xmlhttp.Open &amp;quot;GET&amp;quot;, strUrl, False&lt;br /&gt;
    xmlhttp.Send&lt;br /&gt;
    &amp;#039;MsgBox (xmlhttp.responseText)   &lt;br /&gt;
    restAPI = xmlhttp.responseText&lt;br /&gt;
 End Function&lt;br /&gt;
&lt;br /&gt;
Para chamar no Excel use =resAPI(&amp;quot;NOME&amp;quot;)&lt;/div&gt;</summary>
		<author><name>Renefgj</name></author>
		
	</entry>
</feed>