<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to access Rest API Login Endpoint using VBA]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">How can access the Rest API Login endpoint using VBA code? Do you have a simple sample codes for this kind of access?<br />
Thank you very much.</p>
<p dir="auto">Regards,<br />
Mok Kiew</p>
]]></description><link>https://forum.mango-os.com/topic/2660/how-to-access-rest-api-login-endpoint-using-vba</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 16:36:18 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2660.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 09 Feb 2017 05:24:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to access Rest API Login Endpoint using VBA on Thu, 23 Feb 2017 10:37:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">To add to what phildunlap said, you must include 'application/json' in the accepts header.</p>
<p dir="auto">If basing your code on the question and answers on that stackoverflow page, you would need to add the following line before invoking the send method:</p>
<p dir="auto">objHTTP.setRequestHeader "accept", "application/json"</p>
<p dir="auto">Regards,</p>
<p dir="auto">Gary</p>
]]></description><link>https://forum.mango-os.com/post/13973</link><guid isPermaLink="true">https://forum.mango-os.com/post/13973</guid><dc:creator><![CDATA[gary]]></dc:creator><pubDate>Thu, 23 Feb 2017 10:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to access Rest API Login Endpoint using VBA on Thu, 09 Feb 2017 18:03:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi Mok Kiew,</p>
<p dir="auto">I've never written any VBA and very little VB personally, but I think this stackoverflow thread does some general API type stuff, and it does contain some information about setting headers: <a href="http://stackoverflow.com/questions/19553476/how-to-make-rest-call-with-vba-in-excel" rel="nofollow ugc">http://stackoverflow.com/questions/19553476/how-to-make-rest-call-with-vba-in-excel</a></p>
<p dir="auto">You'll want to do a GET to <code>/rest/v1/login/admin</code> or another user with the password in a header named "password" which will get you a response with a Set-Cookie header if successful. You'll have to pass that header's value as the "Cookie" header in subsequent requests.</p>
<p dir="auto">You may need to include the XSRF-TOKEN portion of the Cookie under the X-Xsrf-Token header, as well. If this is required you'll have a 403 Forbidden response when using just the Cookie header.</p>
<p dir="auto">Someone else may chime in with an example script. Good luck!</p>
]]></description><link>https://forum.mango-os.com/post/13846</link><guid isPermaLink="true">https://forum.mango-os.com/post/13846</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 09 Feb 2017 18:03:37 GMT</pubDate></item></channel></rss>