{"action":"created","comment":{"url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/comments/186354658","pull_request_review_id":117914513,"id":186354658,"diff_hunk":"@@ -158,3 +158,15 @@ def isAlive(self):\n         :rtype: JSON\n         \"\"\"\n         return request_from(url('isAlive'), self.api_key, self.device_id)\n+\n+    def isOnline(self):\n+        \"\"\"\n+        Check the device status with last updated time\n+\n+        :param None\n+        :returns:  request status, device status: online/offline, time: last of last updated value","path":"boltiot/bolt.py","position":10,"original_position":10,"commit_id":"b6638ec4169bf01a6ac766ea947bdadfa935c4e1","original_commit_id":"b6638ec4169bf01a6ac766ea947bdadfa935c4e1","user":{"login":"sashoeb","id":36851219,"avatar_url":"https://avatars3.githubusercontent.com/u/36851219?v=4","gravatar_id":"","url":"https://api.github.com/users/sashoeb","html_url":"https://github.com/sashoeb","followers_url":"https://api.github.com/users/sashoeb/followers","following_url":"https://api.github.com/users/sashoeb/following{/other_user}","gists_url":"https://api.github.com/users/sashoeb/gists{/gist_id}","starred_url":"https://api.github.com/users/sashoeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashoeb/subscriptions","organizations_url":"https://api.github.com/users/sashoeb/orgs","repos_url":"https://api.github.com/users/sashoeb/repos","events_url":"https://api.github.com/users/sashoeb/events{/privacy}","received_events_url":"https://api.github.com/users/sashoeb/received_events","type":"User","site_admin":false},"body":"@Deepanshu625 Modify the return statement to something like,\r\n\r\n> :returns: status: status of the request(true/false), value: device status (online/offline), time: Last seen time of the Bolt device (Time Format)","created_at":"2018-05-07T08:08:52Z","updated_at":"2018-05-07T08:08:52Z","html_url":"https://github.com/Inventrom/bolt-api-python/pull/9#discussion_r186354658","pull_request_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/comments/186354658"},"html":{"href":"https://github.com/Inventrom/bolt-api-python/pull/9#discussion_r186354658"},"pull_request":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9","id":186276574,"html_url":"https://github.com/Inventrom/bolt-api-python/pull/9","diff_url":"https://github.com/Inventrom/bolt-api-python/pull/9.diff","patch_url":"https://github.com/Inventrom/bolt-api-python/pull/9.patch","issue_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/9","number":9,"state":"open","locked":false,"title":"Function for is online api","user":{"login":"Deepanshu625","id":9281629,"avatar_url":"https://avatars1.githubusercontent.com/u/9281629?v=4","gravatar_id":"","url":"https://api.github.com/users/Deepanshu625","html_url":"https://github.com/Deepanshu625","followers_url":"https://api.github.com/users/Deepanshu625/followers","following_url":"https://api.github.com/users/Deepanshu625/following{/other_user}","gists_url":"https://api.github.com/users/Deepanshu625/gists{/gist_id}","starred_url":"https://api.github.com/users/Deepanshu625/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deepanshu625/subscriptions","organizations_url":"https://api.github.com/users/Deepanshu625/orgs","repos_url":"https://api.github.com/users/Deepanshu625/repos","events_url":"https://api.github.com/users/Deepanshu625/events{/privacy}","received_events_url":"https://api.github.com/users/Deepanshu625/received_events","type":"User","site_admin":false},"body":"We had decided to create a new Bolt API called isOnline in place of isAlive. but we aren't removing the isAlive API yet. \"isOnline\" API will return the current status of the device. Is it online or offline and also tell the recent update time when it went offline or when it came online.","created_at":"2018-05-07T07:35:40Z","updated_at":"2018-05-07T08:08:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"916744beb4eb250c3ea2dccd00debd834778a280","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Vinayakj009","id":5003399,"avatar_url":"https://avatars2.githubusercontent.com/u/5003399?v=4","gravatar_id":"","url":"https://api.github.com/users/Vinayakj009","html_url":"https://github.com/Vinayakj009","followers_url":"https://api.github.com/users/Vinayakj009/followers","following_url":"https://api.github.com/users/Vinayakj009/following{/other_user}","gists_url":"https://api.github.com/users/Vinayakj009/gists{/gist_id}","starred_url":"https://api.github.com/users/Vinayakj009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vinayakj009/subscriptions","organizations_url":"https://api.github.com/users/Vinayakj009/orgs","repos_url":"https://api.github.com/users/Vinayakj009/repos","events_url":"https://api.github.com/users/Vinayakj009/events{/privacy}","received_events_url":"https://api.github.com/users/Vinayakj009/received_events","type":"User","site_admin":false},{"login":"quelist","id":12381860,"avatar_url":"https://avatars1.githubusercontent.com/u/12381860?v=4","gravatar_id":"","url":"https://api.github.com/users/quelist","html_url":"https://github.com/quelist","followers_url":"https://api.github.com/users/quelist/followers","following_url":"https://api.github.com/users/quelist/following{/other_user}","gists_url":"https://api.github.com/users/quelist/gists{/gist_id}","starred_url":"https://api.github.com/users/quelist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quelist/subscriptions","organizations_url":"https://api.github.com/users/quelist/orgs","repos_url":"https://api.github.com/users/quelist/repos","events_url":"https://api.github.com/users/quelist/events{/privacy}","received_events_url":"https://api.github.com/users/quelist/received_events","type":"User","site_admin":false},{"login":"pranavkundaikar","id":20598762,"avatar_url":"https://avatars2.githubusercontent.com/u/20598762?v=4","gravatar_id":"","url":"https://api.github.com/users/pranavkundaikar","html_url":"https://github.com/pranavkundaikar","followers_url":"https://api.github.com/users/pranavkundaikar/followers","following_url":"https://api.github.com/users/pranavkundaikar/following{/other_user}","gists_url":"https://api.github.com/users/pranavkundaikar/gists{/gist_id}","starred_url":"https://api.github.com/users/pranavkundaikar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pranavkundaikar/subscriptions","organizations_url":"https://api.github.com/users/pranavkundaikar/orgs","repos_url":"https://api.github.com/users/pranavkundaikar/repos","events_url":"https://api.github.com/users/pranavkundaikar/events{/privacy}","received_events_url":"https://api.github.com/users/pranavkundaikar/received_events","type":"User","site_admin":false},{"login":"PallaviDutta","id":27771095,"avatar_url":"https://avatars2.githubusercontent.com/u/27771095?v=4","gravatar_id":"","url":"https://api.github.com/users/PallaviDutta","html_url":"https://github.com/PallaviDutta","followers_url":"https://api.github.com/users/PallaviDutta/followers","following_url":"https://api.github.com/users/PallaviDutta/following{/other_user}","gists_url":"https://api.github.com/users/PallaviDutta/gists{/gist_id}","starred_url":"https://api.github.com/users/PallaviDutta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PallaviDutta/subscriptions","organizations_url":"https://api.github.com/users/PallaviDutta/orgs","repos_url":"https://api.github.com/users/PallaviDutta/repos","events_url":"https://api.github.com/users/PallaviDutta/events{/privacy}","received_events_url":"https://api.github.com/users/PallaviDutta/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/9/comments","statuses_url":"https://api.github.com/repos/Inventrom/bolt-api-python/statuses/b6638ec4169bf01a6ac766ea947bdadfa935c4e1","head":{"label":"Inventrom:function_for_is_online_API","ref":"function_for_is_online_API","sha":"b6638ec4169bf01a6ac766ea947bdadfa935c4e1","user":{"login":"Inventrom","id":11888838,"avatar_url":"https://avatars2.githubusercontent.com/u/11888838?v=4","gravatar_id":"","url":"https://api.github.com/users/Inventrom","html_url":"https://github.com/Inventrom","followers_url":"https://api.github.com/users/Inventrom/followers","following_url":"https://api.github.com/users/Inventrom/following{/other_user}","gists_url":"https://api.github.com/users/Inventrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Inventrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inventrom/subscriptions","organizations_url":"https://api.github.com/users/Inventrom/orgs","repos_url":"https://api.github.com/users/Inventrom/repos","events_url":"https://api.github.com/users/Inventrom/events{/privacy}","received_events_url":"https://api.github.com/users/Inventrom/received_events","type":"Organization","site_admin":false},"repo":{"id":99766818,"name":"bolt-api-python","full_name":"Inventrom/bolt-api-python","owner":{"login":"Inventrom","id":11888838,"avatar_url":"https://avatars2.githubusercontent.com/u/11888838?v=4","gravatar_id":"","url":"https://api.github.com/users/Inventrom","html_url":"https://github.com/Inventrom","followers_url":"https://api.github.com/users/Inventrom/followers","following_url":"https://api.github.com/users/Inventrom/following{/other_user}","gists_url":"https://api.github.com/users/Inventrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Inventrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inventrom/subscriptions","organizations_url":"https://api.github.com/users/Inventrom/orgs","repos_url":"https://api.github.com/users/Inventrom/repos","events_url":"https://api.github.com/users/Inventrom/events{/privacy}","received_events_url":"https://api.github.com/users/Inventrom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Inventrom/bolt-api-python","description":"A Python module for communicating with the Bolt Cloud API.","fork":false,"url":"https://api.github.com/repos/Inventrom/bolt-api-python","forks_url":"https://api.github.com/repos/Inventrom/bolt-api-python/forks","keys_url":"https://api.github.com/repos/Inventrom/bolt-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Inventrom/bolt-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Inventrom/bolt-api-python/teams","hooks_url":"https://api.github.com/repos/Inventrom/bolt-api-python/hooks","issue_events_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/Inventrom/bolt-api-python/events","assignees_url":"https://api.github.com/repos/Inventrom/bolt-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/Inventrom/bolt-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/Inventrom/bolt-api-python/tags","blobs_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Inventrom/bolt-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/Inventrom/bolt-api-python/languages","stargazers_url":"https://api.github.com/repos/Inventrom/bolt-api-python/stargazers","contributors_url":"https://api.github.com/repos/Inventrom/bolt-api-python/contributors","subscribers_url":"https://api.github.com/repos/Inventrom/bolt-api-python/subscribers","subscription_url":"https://api.github.com/repos/Inventrom/bolt-api-python/subscription","commits_url":"https://api.github.com/repos/Inventrom/bolt-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/Inventrom/bolt-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/Inventrom/bolt-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Inventrom/bolt-api-python/merges","archive_url":"https://api.github.com/repos/Inventrom/bolt-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Inventrom/bolt-api-python/downloads","issues_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/Inventrom/bolt-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/Inventrom/bolt-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Inventrom/bolt-api-python/labels{/name}","releases_url":"https://api.github.com/repos/Inventrom/bolt-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/deployments","created_at":"2017-08-09T05:04:14Z","updated_at":"2018-04-25T03:09:48Z","pushed_at":"2018-05-07T07:35:40Z","git_url":"git://github.com/Inventrom/bolt-api-python.git","ssh_url":"git@github.com:Inventrom/bolt-api-python.git","clone_url":"https://github.com/Inventrom/bolt-api-python.git","svn_url":"https://github.com/Inventrom/bolt-api-python","homepage":"https://cloud.boltiot.com/","size":35,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"Inventrom:master","ref":"master","sha":"686b9ce385b948237369750adbbae5200a78be87","user":{"login":"Inventrom","id":11888838,"avatar_url":"https://avatars2.githubusercontent.com/u/11888838?v=4","gravatar_id":"","url":"https://api.github.com/users/Inventrom","html_url":"https://github.com/Inventrom","followers_url":"https://api.github.com/users/Inventrom/followers","following_url":"https://api.github.com/users/Inventrom/following{/other_user}","gists_url":"https://api.github.com/users/Inventrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Inventrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inventrom/subscriptions","organizations_url":"https://api.github.com/users/Inventrom/orgs","repos_url":"https://api.github.com/users/Inventrom/repos","events_url":"https://api.github.com/users/Inventrom/events{/privacy}","received_events_url":"https://api.github.com/users/Inventrom/received_events","type":"Organization","site_admin":false},"repo":{"id":99766818,"name":"bolt-api-python","full_name":"Inventrom/bolt-api-python","owner":{"login":"Inventrom","id":11888838,"avatar_url":"https://avatars2.githubusercontent.com/u/11888838?v=4","gravatar_id":"","url":"https://api.github.com/users/Inventrom","html_url":"https://github.com/Inventrom","followers_url":"https://api.github.com/users/Inventrom/followers","following_url":"https://api.github.com/users/Inventrom/following{/other_user}","gists_url":"https://api.github.com/users/Inventrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Inventrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Inventrom/subscriptions","organizations_url":"https://api.github.com/users/Inventrom/orgs","repos_url":"https://api.github.com/users/Inventrom/repos","events_url":"https://api.github.com/users/Inventrom/events{/privacy}","received_events_url":"https://api.github.com/users/Inventrom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Inventrom/bolt-api-python","description":"A Python module for communicating with the Bolt Cloud API.","fork":false,"url":"https://api.github.com/repos/Inventrom/bolt-api-python","forks_url":"https://api.github.com/repos/Inventrom/bolt-api-python/forks","keys_url":"https://api.github.com/repos/Inventrom/bolt-api-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Inventrom/bolt-api-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Inventrom/bolt-api-python/teams","hooks_url":"https://api.github.com/repos/Inventrom/bolt-api-python/hooks","issue_events_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/events{/number}","events_url":"https://api.github.com/repos/Inventrom/bolt-api-python/events","assignees_url":"https://api.github.com/repos/Inventrom/bolt-api-python/assignees{/user}","branches_url":"https://api.github.com/repos/Inventrom/bolt-api-python/branches{/branch}","tags_url":"https://api.github.com/repos/Inventrom/bolt-api-python/tags","blobs_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Inventrom/bolt-api-python/statuses/{sha}","languages_url":"https://api.github.com/repos/Inventrom/bolt-api-python/languages","stargazers_url":"https://api.github.com/repos/Inventrom/bolt-api-python/stargazers","contributors_url":"https://api.github.com/repos/Inventrom/bolt-api-python/contributors","subscribers_url":"https://api.github.com/repos/Inventrom/bolt-api-python/subscribers","subscription_url":"https://api.github.com/repos/Inventrom/bolt-api-python/subscription","commits_url":"https://api.github.com/repos/Inventrom/bolt-api-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/Inventrom/bolt-api-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/Inventrom/bolt-api-python/contents/{+path}","compare_url":"https://api.github.com/repos/Inventrom/bolt-api-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Inventrom/bolt-api-python/merges","archive_url":"https://api.github.com/repos/Inventrom/bolt-api-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Inventrom/bolt-api-python/downloads","issues_url":"https://api.github.com/repos/Inventrom/bolt-api-python/issues{/number}","pulls_url":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls{/number}","milestones_url":"https://api.github.com/repos/Inventrom/bolt-api-python/milestones{/number}","notifications_url":"https://api.github.com/repos/Inventrom/bolt-api-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Inventrom/bolt-api-python/labels{/name}","releases_url":"https://api.github.com/repos/Inventrom/bolt-api-python/releases{/id}","deployments_url":"https://api.github.com/repos/Inventrom/bolt-api-python/deployments","created_at":"2017-08-09T05:04:14Z","updated_at":"2018-04-25T03:09:48Z","pushed_at":"2018-05-07T07:35:40Z","git_url":"git://github.com/Inventrom/bolt-api-python.git","ssh_url":"git@github.com:Inventrom/bolt-api-python.git","clone_url":"https://github.com/Inventrom/bolt-api-python.git","svn_url":"https://github.com/Inventrom/bolt-api-python","homepage":"https://cloud.boltiot.com/","size":35,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9"},"html":{"href":"https://github.com/Inventrom/bolt-api-python/pull/9"},"issue":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/9"},"comments":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Inventrom/bolt-api-python/statuses/b6638ec4169bf01a6ac766ea947bdadfa935c4e1"}},"author_association":"NONE"}}
{"actor":{"display_login":"sashoeb"}}