<?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[Newsfeed, how to get url via API]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I want to add a button on my magicmirror that send the URL of the current article to my smartphone.<br />
For this, I just need to retrieve the url and jeedom will do the notification to our smartphone.</p>
<p dir="auto">I think i need to use API request because newsfeed support notification mechanism.</p>
<p dir="auto">I’ve tried to do this with this simple request<br />
<a href="http://X.X.X.X:8080/api/notification/ARTICLE_INFO_REQUEST?apiKey=" target="_blank" rel="noopener noreferrer nofollow ugc">http://X.X.X.X:8080/api/notification/ARTICLE_INFO_REQUEST?apiKey=</a>***</p>
<p dir="auto">But the result have empty payload.<br />
Any idea to get the URL of current article through API request ?<br />
Thank you :) !</p>
]]></description><link>https://forum.magicmirror.builders/topic/16234/newsfeed-how-to-get-url-via-api</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 16:23:35 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/16234.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jan 2022 18:00:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Newsfeed, how to get url via API on Sat, 22 Jan 2022 17:59:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Ok so no solution for what i want to do. The only solution is to display full article by API request, or use the MMM-News-QR to get URL.</p>
]]></description><link>https://forum.magicmirror.builders/post/98878</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98878</guid><dc:creator><![CDATA[selyjohns]]></dc:creator><pubDate>Sat, 22 Jan 2022 17:59:18 GMT</pubDate></item><item><title><![CDATA[Reply to Newsfeed, how to get url via API on Sat, 22 Jan 2022 13:12:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/selyjohns" aria-label="Profile: selyjohns">@<bdi>selyjohns</bdi></a> I do not know how u get response from that url request.</p>
<p dir="auto">looking at the remote-control code,  there is no mechanism to get the response of a notification</p>
<p dir="auto">notifications are one way broadcasts to all modules</p>
<p dir="auto">send and forget</p>
<p dir="auto">A module  MAY send back it’s OWN  broadcast notification in response, as in the case of the notification u sent, newsfeed sends a notification back later</p>
<p dir="auto">but remote-control is not looking for it, nor waiting for it to complete the url request</p>
<p dir="auto">all the code does is send. and the url request is complete.</p>
]]></description><link>https://forum.magicmirror.builders/post/98864</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98864</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 22 Jan 2022 13:12:01 GMT</pubDate></item><item><title><![CDATA[Reply to Newsfeed, how to get url via API on Fri, 21 Jan 2022 23:08:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Thank you for your reply.<br />
I just want the url of current displayed article, and get it in my jeedom.</p>
<p dir="auto">do you see any solution to do that if I can’t by API ?</p>
<p dir="auto">Edit : tried with same request but RESPONSE instead of REQUEST and payload is still empty…I think I didn’t use it correctly.</p>
]]></description><link>https://forum.magicmirror.builders/post/98859</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98859</guid><dc:creator><![CDATA[selyjohns]]></dc:creator><pubDate>Fri, 21 Jan 2022 23:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to Newsfeed, how to get url via API on Fri, 21 Jan 2022 19:02:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/selyjohns" aria-label="Profile: selyjohns">@<bdi>selyjohns</bdi></a> the code doesn’t support getting A particular entry, only the CURRENT entry<br />
and url comes back as part of the response</p>
<p dir="auto">the newsfeed module code</p>
<pre><code>else if (notification === "ARTICLE_INFO_REQUEST") {
			this.sendNotification("ARTICLE_INFO_RESPONSE", {
				title: this.newsItems[this.activeItem].title,
				source: this.newsItems[this.activeItem].sourceTitle,
				date: this.newsItems[this.activeItem].pubdate,
				desc: this.newsItems[this.activeItem].description,
				url: this.getActiveItemURL()
			});
</code></pre>
<p dir="auto">u are looking for</p>
<p dir="auto">“ARTICLE_INFO_RESPONSE”  notification, right.</p>
<p dir="auto">the notification call is not synchronous…</p>
]]></description><link>https://forum.magicmirror.builders/post/98840</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/98840</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 21 Jan 2022 19:02:46 GMT</pubDate></item></channel></rss>