{"id":20024,"date":"2017-07-14T13:44:54","date_gmt":"2017-07-14T18:44:54","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=20024"},"modified":"2017-07-14T13:44:54","modified_gmt":"2017-07-14T18:44:54","slug":"example-account","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/devicehq\/account-api\/account-api-examples\/example-account\/","title":{"rendered":"Example &#8211; Account"},"content":{"rendered":"<ul>\n<li>GET \/api\/v2\/account\n<ul>\n<li>Returns account information for the present account.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<pre class=\"brush:xml\">{\r\n  \"data\": {\r\n    \"id\": \"jeff@ez-tech.com\", # a comment \r\n    \"type\": \"accounts\",\r\n    \"attributes\": {\r\n      \"name\": \"EZ-TECH\",\r\n      \"address1\": \"1704 Standish Ave\",\r\n      \"address2\": \"\",\r\n      \"city\": \"Woodsville\",\r\n      \"state\": \"AK\",\r\n      \"postal_code\": \"32118\",\r\n      \"country\": \"United States\",\r\n      \"phone\": \"706-242-2222\",\r\n      \"email\": \"jeff@ez-tech.com\",\r\n      \"website\": \"https:\/\/ez-tech.biz\",\r\n      \"alerts_config\": {\r\n        \"enabled\": \"1\",\r\n        \"low_signal\": {\r\n          \"enabled\": \"1\",\r\n          \"threshold\": \"-100\",\r\n          \"recipient_groups\": [\r\n            \"\"\r\n          ],\r\n          \"max_notifications_per_day\": \"daily\",\r\n          \"email\": \"1\",\r\n          \"sms\": \"0\",\r\n          \"details\": \"Signal &lt; -100 dBm\"\r\n        },\r\n        \"missed_checkin\": {\r\n          \"enabled\": \"1\",\r\n          \"recipient_groups\": [\r\n            \"\"\r\n          ],\r\n          \"max_notifications_per_day\": \"every_checkin\",\r\n          \"email\": \"1\",\r\n          \"sms\": \"0\",\r\n          \"details\": \"device fails to check in\"\r\n        },\r\n        \"high_data_usage\": {\r\n          \"enabled\": \"1\",\r\n          \"recipient_groups\": [\r\n            \"\"\r\n          ],\r\n          \"max_notifications_per_day\": \"every_checkin\",\r\n          \"email\": \"1\",\r\n          \"sms\": \"0\",\r\n          \"details\": \"data usage &gt; threshold\"\r\n        },\r\n        \"failed_actions\": {\r\n          \"enabled\": \"1\",\r\n          \"recipient_groups\": [\r\n            \"\"\r\n          ],\r\n          \"max_notifications_per_day\": \"every_checkin\",\r\n          \"email\": \"1\",\r\n          \"sms\": \"0\",\r\n          \"details\": \"scheduled actions failed to execute\"\r\n        },\r\n        \"device_reboot\": {\r\n          \"enabled\": \"1\",\r\n          \"recipient_groups\": [\r\n            \"\"\r\n          ],\r\n          \"max_notifications_per_day\": \"every_checkin\",\r\n          \"email\": \"1\",\r\n          \"sms\": \"0\",\r\n          \"details\": \"device rebooted\"\r\n        },\r\n        \"recipient_groups\": {\r\n          \"1\": {\r\n            \"name\": \"t\"\r\n          },\r\n          \"2\": {\r\n            \"name\": \"rr\"\r\n          }\r\n        }\r\n      },\r\n      \"enabled\": true,\r\n      \"confirmed\": true\r\n    }\r\n  }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GET \/api\/v2\/account Returns account information for the present account. { &#8220;data&#8221;: { &#8220;id&#8221;: &#8220;jeff@ez-tech.com&#8221;, # a comment &#8220;type&#8221;: &#8220;accounts&#8221;, &#8220;attributes&#8221;: { &#8220;name&#8221;: &#8220;EZ-TECH&#8221;, &#8220;address1&#8221;: &#8220;1704 Standish Ave&#8221;, &#8220;address2&#8221;: &#8220;&#8221;, &#8220;city&#8221;: &#8220;Woodsville&#8221;, &#8220;state&#8221;: &#8220;AK&#8221;, &#8220;postal_code&#8221;: &#8220;32118&#8221;, &#8220;country&#8221;: &#8220;United States&#8221;, &#8220;phone&#8221;: &#8220;706-242-2222&#8221;, &#8220;email&#8221;: &#8220;jeff@ez-tech.com&#8221;, &#8220;website&#8221;: &#8220;https:\/\/ez-tech.biz&#8221;, &#8220;alerts_config&#8221;: { &#8220;enabled&#8221;: &#8220;1&#8221;, &#8220;low_signal&#8221;: { &#8220;enabled&#8221;: &#8220;1&#8221;, &#8220;threshold&#8221;: &#8220;-100&#8221;, &#8220;recipient_groups&#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-20024","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20024","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=20024"}],"version-history":[{"count":5,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20024\/revisions"}],"predecessor-version":[{"id":20106,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/20024\/revisions\/20106"}],"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=20024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}