{"id":182,"date":"2020-04-27T12:04:06","date_gmt":"2020-04-27T12:04:06","guid":{"rendered":"http:\/\/localhost\/senitron\/?page_id=182"},"modified":"2022-02-02T18:48:44","modified_gmt":"2022-02-02T18:48:44","slug":"restapi-registration-and-authentication","status":"publish","type":"page","link":"https:\/\/senitron.net\/developers\/restapi-registration-and-authentication\/","title":{"rendered":"RESTAPI-Registration And Authentication"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-bg-size:cover;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:0px;margin-bottom:0px;width:100%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;border-color:#e2e2e2;border-top-width:2px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-1\"><p><a class=\"linkstyle1\" href=\"https:\/\/senitron.net\/developers\/restapi-register-device\/\"> Register Device<\/a><\/p>\n<p>For using the API from a mobile device, first step is device registration. For doing this step, you should call this service.<\/p>\n<p><a class=\"linkstyle1\" href=\"https:\/\/senitron.net\/developers\/restapi-login\/\">Login<\/a><\/p>\n<p>After registration step and receiving <b>api_key<\/b>, you need to call this service to get a unique <b>token<\/b> and use it when calling other services.<\/p>\n<p><a class=\"linkstyle1\" href=\"https:\/\/senitron.net\/developers\/restapi-session-ping\/\">Session Ping<\/a><\/p>\n<p>When you call Login service and make an authenticated session to the server, dependent to your timeout value while log-in, you should call this service to renew your current session. for example if timeout value is 5 minutes, you should call this service every 5 minutes or less to renew your session. This service returns current tenant settings in response data.<\/p>\n<\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"side-navigation.php","meta":{"footnotes":""},"class_list":["post-182","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/comments?post=182"}],"version-history":[{"count":3,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/182\/revisions"}],"predecessor-version":[{"id":1299,"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/pages\/182\/revisions\/1299"}],"wp:attachment":[{"href":"https:\/\/senitron.net\/developers\/wp-json\/wp\/v2\/media?parent=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}