<?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[mcApi.http() Examples]]></title><description><![CDATA[<p dir="auto">Hello everybody !</p>
<p dir="auto">I need to read from an api using mcApi.http() as a response to a button being pressed.</p>
<p dir="auto">The ideia is to push a button and read from the api a timeout value. This timeout will be used to keep a relay "on" for this amout of time. This api has an internal logic to calculate the timeout value and it varies depending on various parameters.</p>
<p dir="auto">All I need is to call this api and receive the timeout value.</p>
<p dir="auto">Been a newbie as I am, I am having a hard time to get this running.</p>
<p dir="auto">Are there examples of scripts using mcApi.http() ?</p>
<p dir="auto">Thank you all</p>
]]></description><link>http://forum.mycontroller.org/topic/496/mcapi-http-examples</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 05:30:37 GMT</lastBuildDate><atom:link href="http://forum.mycontroller.org/topic/496.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Dec 2021 18:05:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mcApi.http() Examples on Fri, 10 Dec 2021 01:56:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/row" aria-label="Profile: row">@<bdi>row</bdi></a> supported methods in http,<br />
<a href="https://github.com/mycontroller-org/mycontroller-v1-legacy/blob/8c540b61e56a694ec9a8c8ae21a107839091d3d0/modules/core/src/main/java/org/mycontroller/standalone/api/HttpApi.java#L31" rel="nofollow ugc">https://github.com/mycontroller-org/mycontroller-v1-legacy/blob/8c540b61e56a694ec9a8c8ae21a107839091d3d0/modules/core/src/main/java/org/mycontroller/standalone/api/HttpApi.java#L31</a></p>
]]></description><link>http://forum.mycontroller.org/post/3028</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3028</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Fri, 10 Dec 2021 01:56:06 GMT</pubDate></item><item><title><![CDATA[Reply to mcApi.http() Examples on Fri, 10 Dec 2021 01:20:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jkandasa" aria-label="Profile: jkandasa">@<bdi>jkandasa</bdi></a> HI, thank you for the replay. I am realy new to all this and I am enjoying everytihing. I am running v1.5 because I thought v2 was a pre release version.</p>
<p dir="auto">I have found a code sniped of mcApi.http().get in the forum and I have managed to get it running. Still no mcApi.http().post resquest thou.</p>
<p dir="auto">Anyways, as I am about to get everytihing up and running in v1.5, I will take a look at v2 once I finish it.</p>
<p dir="auto">I realy apreciate all you attention.</p>
<p dir="auto">RoW</p>
]]></description><link>http://forum.mycontroller.org/post/3027</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3027</guid><dc:creator><![CDATA[row]]></dc:creator><pubDate>Fri, 10 Dec 2021 01:20:45 GMT</pubDate></item><item><title><![CDATA[Reply to mcApi.http() Examples on Thu, 09 Dec 2021 15:28:07 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/row" aria-label="Profile: row">@<bdi>row</bdi></a>, welcome to MyController community <img src="http://forum.mycontroller.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=49d1c908e56" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /><br />
If you are in the early stage, i would recommend to use V2.<br />
V1 is no longer in maintenance.</p>
<p dir="auto">V2 : <a href="https://v2.mycontroller.org" rel="nofollow ugc">https://v2.mycontroller.org</a></p>
<p dir="auto">But still if you are looking to use V1, let me know, I will try find out an example for you</p>
]]></description><link>http://forum.mycontroller.org/post/3026</link><guid isPermaLink="true">http://forum.mycontroller.org/post/3026</guid><dc:creator><![CDATA[jkandasa]]></dc:creator><pubDate>Thu, 09 Dec 2021 15:28:07 GMT</pubDate></item></channel></rss>