{"id":13074,"date":"2016-06-22T08:48:20","date_gmt":"2016-06-22T13:48:20","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13074"},"modified":"2018-04-05T16:14:15","modified_gmt":"2018-04-05T21:14:15","slug":"whoami","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_requests\/whoami\/","title":{"rendered":"Retrieving Session Information with the whoami Command"},"content":{"rendered":"<p>At any point, a user can retrieve their session information using the <strong>whoami<\/strong> command:<\/p>\n<h3>Example<\/h3>\n<pre class=\"brush:xml\">GET https:\/\/192.168.2.1\/api\/whoami?token=F3852B53A74868B7927559151439F1AA\r\n\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\" : \"admin\",\"port\" : \"59486\",\r\n             \"timestamp\" : \"2:58:40:389\",\r\n             \"token\" : \" B7083A0B14C0F0BEFFBED89B99EFBC \",\r\n             \"user\" : \"admin\",\r\n     },\r\n     \"status\" : \"success\"  \r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>At any point, a user can retrieve their session information using the whoami command: Example GET https:\/\/192.168.2.1\/api\/whoami?token=F3852B53A74868B7927559151439F1AA 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; : false, &#8220;isremoteuser&#8221; : false, &#8220;permission&#8221; : &#8220;admin&#8221;,&#8221;port&#8221; : &#8220;59486&#8221;, &#8220;timestamp&#8221; : &#8220;2:58:40:389&#8221;, &#8220;token&#8221; : &#8221; B7083A0B14C0F0BEFFBED89B99EFBC &#8220;, &#8220;user&#8221; : &#8220;admin&#8221;, }, [&hellip;]<\/p>\n","protected":false},"author":1872,"featured_media":0,"parent":12979,"menu_order":3,"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-13074","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13074","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=13074"}],"version-history":[{"count":11,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13074\/revisions"}],"predecessor-version":[{"id":23027,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13074\/revisions\/23027"}],"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=13074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}