<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ReadCommand</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadCommand/</link><description>Recent changes to ReadCommand</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/ReadCommand/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 03 Jan 2018 22:04:38 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/ReadCommand/feed" rel="self" type="application/rss+xml"/><item><title>ReadCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadCommand/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -19,7 +19,7 @@
 Example

 ~~~~~~
-GET http://localhost/cs-ws/resources/admin/command/?device_name=TempDev2&amp;amp;
+GET http://localhost/cs-ws/resources/admin/command?device_name=TempDev2&amp;amp;
 command_id=8&amp;amp;apikey=1234&amp;amp;actor_name=Valve1 HTTP/1.1

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Wed, 03 Jan 2018 22:04:38 -0000</pubDate><guid>https://sourceforge.net94c623ea8bcb6feb88d4cf472654cb24f2995255</guid></item><item><title>WikiPage ReadCommand modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadCommand/</link><description>### Read a certain Command ###

Returns an existing Command in the domain of an owner identified by the apikey

Path: cs-ws/resources/admin/command        Method: GET

Parameters

* apikey
* device_name
* actor_name
* command_id

Errors:

* 401 UNAUTHORIZED if key is invalid
* 404 NOT FOUND if the command is not found

Example

~~~~~~
GET http://localhost/cs-ws/resources/admin/command/?device_name=TempDev2&amp;
command_id=8&amp;apikey=1234&amp;actor_name=Valve1 HTTP/1.1


HTTP/1.1 200 OK
&lt;command&gt;
   &lt;activation_time&gt;2012-08-31 21:56:54.036&lt;/activation_time&gt;
   &lt;actor&gt;Valve1&lt;/actor&gt;
   &lt;execution_time&gt;2012-08-31 21:56:58.036&lt;/execution_time&gt;
   &lt;id&gt;8&lt;/id&gt;
   &lt;model&gt;TemperatureDevice&lt;/model&gt;
   &lt;name&gt;TempDev2&lt;/name&gt;
   &lt;parameter&gt;
      &lt;name&gt;WaterValve&lt;/name&gt;
      &lt;value&gt;2&lt;/value&gt;
   &lt;/parameter&gt;
   &lt;status&gt;Ok&lt;/status&gt;
&lt;/command&gt;
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sun, 23 Sep 2012 09:45:02 -0000</pubDate><guid>https://sourceforge.netf022ec14b659f946f2decf122a7f42e3c1c51748</guid></item></channel></rss>