{"id":20044,"date":"2017-07-14T13:44:54","date_gmt":"2017-07-14T18:44:54","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=20044"},"modified":"2017-07-14T13:44:54","modified_gmt":"2017-07-14T18:44:54","slug":"example-network","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/devicehq\/account-api\/account-api-examples\/example-network\/","title":{"rendered":"Example &#8211; Network"},"content":{"rendered":"<ul>\n<li>GET \/api\/v2\/devices\/(serial or uuid)\/network\n<ul>\n<li>Returns network usage statistics\n<ul>\n<li>parameters: &#8220;type&#8221;: (cell|ethernet|wifi) Default: cell\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\": \"12345678\",\r\n  \"type\": \"devices\",\r\n  \"description\": \"99889908\",\r\n  \"product_id\": \"MTCAP-LEU1-868-001L\",\r\n  \"vendor_id\": \"Multi-Tech Systems\",\r\n  \"device_id\": \"99889908\",\r\n  \"attributes\": {\r\n    \"network_usages\": [\r\n      {\r\n        \"2017-01-15\": {\r\n          \"cell\": {\r\n            \"rx_bytes\": 0,\r\n            \"tx_bytes\": 0\r\n          }\r\n        }\r\n      },\r\n      {\r\n        \"2017-01-16\": {\r\n          \"cell\": {\r\n            \"rx_bytes\": 20997455,\r\n            \"tx_bytes\": 35255516\r\n          },\r\n          \"ethernet\": {\r\n            \"rx_bytes\": 4236739667,\r\n            \"tx_bytes\": 4281006485\r\n          }\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GET \/api\/v2\/devices\/(serial or uuid)\/network Returns network usage statistics parameters: &#8220;type&#8221;: (cell|ethernet|wifi) Default: cell 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;12345678&#8221;, &#8220;type&#8221;: &#8220;devices&#8221;, &#8220;description&#8221;: &#8220;99889908&#8221;, &#8220;product_id&#8221;: &#8220;MTCAP-LEU1-868-001L&#8221;, &#8220;vendor_id&#8221;: &#8220;Multi-Tech Systems&#8221;, &#8220;device_id&#8221;: &#8220;99889908&#8221;, &#8220;attributes&#8221;: { &#8220;network_usages&#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-20044","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20044","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=20044"}],"version-history":[{"count":6,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20044\/revisions"}],"predecessor-version":[{"id":32841,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20044\/revisions\/32841"}],"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=20044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}