{"id":20063,"date":"2017-07-14T13:44:54","date_gmt":"2017-07-14T18:44:54","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=20063"},"modified":"2017-07-14T13:44:54","modified_gmt":"2017-07-14T18:44:54","slug":"example-logs","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/devicehq\/account-api\/account-api-examples\/example-logs\/","title":{"rendered":"Example &#8211; Logs"},"content":{"rendered":"<ul>\n<li>GET \/api\/v2\/devices\/(serial or UUID)\/logs\n<ul>\n<li>Returns the\u00a0device&#8217;s log file information (if it exists) and a link to retrieve the .tar.gz file containing the device logs.\n<ul>\n<li>Parameters:\n<ul>\n<li>start_date &#8211; defaults to 10 days ago<\/li>\n<li>end_date &#8211; defaults to tomorrow (so as to get all data)<\/li>\n<li>dates must be YYYY-MM-DD formatted<\/li>\n<\/ul>\n<pre class=\"brush:xml\">{\r\n  \"id\": \"77778211\",\r\n  \"type\": \"devices\",\r\n  \"attributes\": {\r\n    \"log\": {\r\n      \"uploaded_at\": \"09-23-16 11:12:29UTC\",\r\n      \"md5sum\": \"69ed906fbec08f0ee7d66550e0f590ec\",\r\n      \"description\": \"09-23-16_11:12:29UTC.zip\"\r\n    }\r\n  },\r\n  \"links\": {\r\n    \"self\": \"https:\/\/devicehq.com\/api\/v2\/files\/57e50e1d11c3a8fd12711fff\"\r\n  }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GET \/api\/v2\/devices\/(serial or UUID)\/logs Returns the\u00a0device&#8217;s log file information (if it exists) and a link to retrieve the .tar.gz file containing the device logs. Parameters: start_date &#8211; defaults to 10 days ago end_date &#8211; defaults to tomorrow (so as to get all data) dates must be YYYY-MM-DD formatted { &#8220;id&#8221;: &#8220;77778211&#8221;, &#8220;type&#8221;: &#8220;devices&#8221;, &#8220;attributes&#8221;: { [&hellip;]<\/p>\n","protected":false},"author":2082,"featured_media":0,"parent":20000,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-20063","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/2082"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=20063"}],"version-history":[{"count":4,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20063\/revisions"}],"predecessor-version":[{"id":32843,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20063\/revisions\/32843"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20000"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=20063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}