{"id":13054,"date":"2016-06-22T08:47:42","date_gmt":"2016-06-22T13:47:42","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13054"},"modified":"2018-04-05T16:11:34","modified_gmt":"2018-04-05T21:11:34","slug":"logging-out","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_requests\/logging-out\/","title":{"rendered":"Logging Out"},"content":{"rendered":"<p>The logout call requires that the caller has equal or greater permissions than the user they are logging out.<\/p>\n<h3>Examples<\/h3>\n<p>If a user wants to logout, they can pass their authorized token in the following call:<\/p>\n<p>example: <code>https:\/\/192.168.2.1\/api\/logout?token=ABCDEF1234567890ABCDEF12345678<\/code><\/p>\n<pre class=\"brush:xml\">GET https:\/\/192.168.2.1\/api\/logout?username=admin&amp;password=Admin_1234\r\nStatus: HTTP\/1.1 200 OK<\/pre>\n<pre class=\"brush:xml\">{\r\n    \"code\" : 200, \r\n    \"result\" : {\r\n        \"address\" : \"192.168.2.103\",\r\n      \"isipcuser\" : false, \r\n      \"isremoteuser\" : false,\r\n        \"permission\" : \"admin\", \r\n        \"port\" : \"59486\",\r\n        \"timestamp\" : \"2:58:40:389:,  \t\r\n        \"token\" : \"B7083A0B14C0F0BEFFBED89B99EFBC\", \r\n        \"user\" : \"admin\"\r\n    },\r\n    \"status\" : \"success\" \r\n}<\/pre>\n<p>To logout another user (the next examples use monitor level which has read-only access), a user with equal or greater permissions can use their token to authorize the call:<\/p>\n<p>example: <code>https:\/\/192.168.2.1\/api\/logout?logoutUser=monitor&amp;token=ABCDEF1234567890ABCDEF12345678<\/code><\/p>\n<p>Pass credentials with the logout command to authorize the logout call of another user:<\/p>\n<p>example: <code>https:\/\/192.168.2.1\/api\/logout?username=admin&amp;password=admin&amp;logoutUser=monitor<\/code><\/p>\n<pre class=\"brush:xml\">GET https:\/\/192.168.2.1\/api\/logout?username=admin&amp;password=Admin_1234&amp;logoutUser=monitor\r\nStatus: HTTP\/1.1 200 OK\r\n{\r\n    \"code\" : 200, \r\n    \"result\" : {\r\n        \"address\" : \"192.168.2.103\",\r\n      \"isipcuser\" : false, \r\n      \"isremoteuser\" : false,\r\n        \"permission\" : \"guest\", \r\n        \"port\" : \"59486\",\r\n        \"timestamp\" : \"2:58:40:389:,  \t\r\n        \"token\" : \"B7083A0B14C0F0BEFFBED89B99EFBC\", \r\n        \"user\" : \"guest\"\r\n    },\r\n    \"status\" : \"success\" \r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The logout call requires that the caller has equal or greater permissions than the user they are logging out. Examples If a user wants to logout, they can pass their authorized token in the following call: example: https:\/\/192.168.2.1\/api\/logout?token=ABCDEF1234567890ABCDEF12345678 GET https:\/\/192.168.2.1\/api\/logout?username=admin&amp;password=Admin_1234 Status: HTTP\/1.1 200 OK { &#8220;code&#8221; : 200, &#8220;result&#8221; : { &#8220;address&#8221; : &#8220;192.168.2.103&#8221;, &#8220;isipcuser&#8221; [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":12979,"menu_order":2,"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-13054","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13054","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\/1872"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=13054"}],"version-history":[{"count":27,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13054\/revisions"}],"predecessor-version":[{"id":22694,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13054\/revisions\/22694"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/12979"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=13054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}