{"action":"created","comment":{"url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/comments/199562383","pull_request_review_id":133705980,"id":199562383,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTU2MjM4Mw==","diff_hunk":"@@ -112,3 +112,62 @@ Add a listener for request\n ```\n client.eventSource.on('requests', function (err, res))\n ```\n+\n+\n+### Managing Child/Related Devices\n+\n+Related Device accessor\n+\n+```\n+client.relatedDeviceMap[{deviceId}]\n+```\n+\n+Add a Child device\n+\n+```\n+client.relatedDevices.add({deviceId}, {deviceType}, {physicalId})\n+```\n+\n+Remove a Child device\n+\n+```\n+client.relatedDevices.remove({deviceId}, {deviceType}, {physicalId})\n+```\n+\n+Update Related Device State (publish)\n+\n+```\n+client.relatedDeivcesMap[{deviceId}].request.publish({method}, {params})\n+```\n+\n+Update Related Device State (RPC)\n+\n+```\n+client.relatedDeivcesMap[{deviceId}].request.rpc({method}, {params})\n+```\n+\n+Related Device Management\n+\n+Get Related devices from cloud\n+\n+```\n+client.relatedDeviceManager.getRelatedDevices()\n+```\n+\n+Get Related device Ids from cloud\n+\n+```\n+client.relatedDeviceManager.getRelatedDeviceIds()\n+```\n+\n+Get Related device\n+\n+```\n+client.relatedDeviceManager.getRelatedDevice({Id})","path":"README.md","position":55,"original_position":55,"commit_id":"6749f8feffde4917a6bad0e357daad2fdc2d9b15","original_commit_id":"6749f8feffde4917a6bad0e357daad2fdc2d9b15","user":{"login":"stewartjarod","id":949393,"node_id":"MDQ6VXNlcjk0OTM5Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/949393?v=4","gravatar_id":"","url":"https://api.github.com/users/stewartjarod","html_url":"https://github.com/stewartjarod","followers_url":"https://api.github.com/users/stewartjarod/followers","following_url":"https://api.github.com/users/stewartjarod/following{/other_user}","gists_url":"https://api.github.com/users/stewartjarod/gists{/gist_id}","starred_url":"https://api.github.com/users/stewartjarod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stewartjarod/subscriptions","organizations_url":"https://api.github.com/users/stewartjarod/orgs","repos_url":"https://api.github.com/users/stewartjarod/repos","events_url":"https://api.github.com/users/stewartjarod/events{/privacy}","received_events_url":"https://api.github.com/users/stewartjarod/received_events","type":"User","site_admin":false},"body":"`getRelatedDevices` vs `getRelatedDevice` ?","created_at":"2018-07-02T17:04:20Z","updated_at":"2018-07-02T17:04:20Z","html_url":"https://github.com/Yonomi/thincloud-node-sdk/pull/7#discussion_r199562383","pull_request_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/comments/199562383"},"html":{"href":"https://github.com/Yonomi/thincloud-node-sdk/pull/7#discussion_r199562383"},"pull_request":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7","id":198737912,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NzM3OTEy","html_url":"https://github.com/Yonomi/thincloud-node-sdk/pull/7","diff_url":"https://github.com/Yonomi/thincloud-node-sdk/pull/7.diff","patch_url":"https://github.com/Yonomi/thincloud-node-sdk/pull/7.patch","issue_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/7","number":7,"state":"open","locked":false,"title":"update docs with example usage","user":{"login":"hassan-yonomi","id":22722181,"node_id":"MDQ6VXNlcjIyNzIyMTgx","avatar_url":"https://avatars1.githubusercontent.com/u/22722181?v=4","gravatar_id":"","url":"https://api.github.com/users/hassan-yonomi","html_url":"https://github.com/hassan-yonomi","followers_url":"https://api.github.com/users/hassan-yonomi/followers","following_url":"https://api.github.com/users/hassan-yonomi/following{/other_user}","gists_url":"https://api.github.com/users/hassan-yonomi/gists{/gist_id}","starred_url":"https://api.github.com/users/hassan-yonomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hassan-yonomi/subscriptions","organizations_url":"https://api.github.com/users/hassan-yonomi/orgs","repos_url":"https://api.github.com/users/hassan-yonomi/repos","events_url":"https://api.github.com/users/hassan-yonomi/events{/privacy}","received_events_url":"https://api.github.com/users/hassan-yonomi/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-02T17:02:01Z","updated_at":"2018-07-02T17:04:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9ecd18a8456fe0e74fabd9921ef4f1965e200a9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/7/comments","statuses_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/statuses/6749f8feffde4917a6bad0e357daad2fdc2d9b15","head":{"label":"Yonomi:docs","ref":"docs","sha":"6749f8feffde4917a6bad0e357daad2fdc2d9b15","user":{"login":"Yonomi","id":5626227,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2MjYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5626227?v=4","gravatar_id":"","url":"https://api.github.com/users/Yonomi","html_url":"https://github.com/Yonomi","followers_url":"https://api.github.com/users/Yonomi/followers","following_url":"https://api.github.com/users/Yonomi/following{/other_user}","gists_url":"https://api.github.com/users/Yonomi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yonomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yonomi/subscriptions","organizations_url":"https://api.github.com/users/Yonomi/orgs","repos_url":"https://api.github.com/users/Yonomi/repos","events_url":"https://api.github.com/users/Yonomi/events{/privacy}","received_events_url":"https://api.github.com/users/Yonomi/received_events","type":"Organization","site_admin":false},"repo":{"id":95262399,"node_id":"MDEwOlJlcG9zaXRvcnk5NTI2MjM5OQ==","name":"thincloud-node-sdk","full_name":"Yonomi/thincloud-node-sdk","owner":{"login":"Yonomi","id":5626227,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2MjYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5626227?v=4","gravatar_id":"","url":"https://api.github.com/users/Yonomi","html_url":"https://github.com/Yonomi","followers_url":"https://api.github.com/users/Yonomi/followers","following_url":"https://api.github.com/users/Yonomi/following{/other_user}","gists_url":"https://api.github.com/users/Yonomi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yonomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yonomi/subscriptions","organizations_url":"https://api.github.com/users/Yonomi/orgs","repos_url":"https://api.github.com/users/Yonomi/repos","events_url":"https://api.github.com/users/Yonomi/events{/privacy}","received_events_url":"https://api.github.com/users/Yonomi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yonomi/thincloud-node-sdk","description":"Thincloud Nodejs Device SDK ","fork":false,"url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk","forks_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/forks","keys_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/teams","hooks_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/hooks","issue_events_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/events","assignees_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/tags","blobs_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/languages","stargazers_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/stargazers","contributors_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/contributors","subscribers_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/subscribers","subscription_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/subscription","commits_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/merges","archive_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/downloads","issues_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/deployments","created_at":"2017-06-23T23:03:56Z","updated_at":"2018-06-29T18:02:26Z","pushed_at":"2018-07-02T17:02:01Z","git_url":"git://github.com/Yonomi/thincloud-node-sdk.git","ssh_url":"git@github.com:Yonomi/thincloud-node-sdk.git","clone_url":"https://github.com/Yonomi/thincloud-node-sdk.git","svn_url":"https://github.com/Yonomi/thincloud-node-sdk","homepage":"","size":80,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Yonomi:master","ref":"master","sha":"0a06c0bacd5608c4b8eedcd881b0967dd50702ec","user":{"login":"Yonomi","id":5626227,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2MjYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5626227?v=4","gravatar_id":"","url":"https://api.github.com/users/Yonomi","html_url":"https://github.com/Yonomi","followers_url":"https://api.github.com/users/Yonomi/followers","following_url":"https://api.github.com/users/Yonomi/following{/other_user}","gists_url":"https://api.github.com/users/Yonomi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yonomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yonomi/subscriptions","organizations_url":"https://api.github.com/users/Yonomi/orgs","repos_url":"https://api.github.com/users/Yonomi/repos","events_url":"https://api.github.com/users/Yonomi/events{/privacy}","received_events_url":"https://api.github.com/users/Yonomi/received_events","type":"Organization","site_admin":false},"repo":{"id":95262399,"node_id":"MDEwOlJlcG9zaXRvcnk5NTI2MjM5OQ==","name":"thincloud-node-sdk","full_name":"Yonomi/thincloud-node-sdk","owner":{"login":"Yonomi","id":5626227,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2MjYyMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/5626227?v=4","gravatar_id":"","url":"https://api.github.com/users/Yonomi","html_url":"https://github.com/Yonomi","followers_url":"https://api.github.com/users/Yonomi/followers","following_url":"https://api.github.com/users/Yonomi/following{/other_user}","gists_url":"https://api.github.com/users/Yonomi/gists{/gist_id}","starred_url":"https://api.github.com/users/Yonomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yonomi/subscriptions","organizations_url":"https://api.github.com/users/Yonomi/orgs","repos_url":"https://api.github.com/users/Yonomi/repos","events_url":"https://api.github.com/users/Yonomi/events{/privacy}","received_events_url":"https://api.github.com/users/Yonomi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yonomi/thincloud-node-sdk","description":"Thincloud Nodejs Device SDK ","fork":false,"url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk","forks_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/forks","keys_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/teams","hooks_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/hooks","issue_events_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/events","assignees_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/tags","blobs_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/languages","stargazers_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/stargazers","contributors_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/contributors","subscribers_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/subscribers","subscription_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/subscription","commits_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/merges","archive_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/downloads","issues_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/labels{/name}","releases_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/deployments","created_at":"2017-06-23T23:03:56Z","updated_at":"2018-06-29T18:02:26Z","pushed_at":"2018-07-02T17:02:01Z","git_url":"git://github.com/Yonomi/thincloud-node-sdk.git","ssh_url":"git@github.com:Yonomi/thincloud-node-sdk.git","clone_url":"https://github.com/Yonomi/thincloud-node-sdk.git","svn_url":"https://github.com/Yonomi/thincloud-node-sdk","homepage":"","size":80,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7"},"html":{"href":"https://github.com/Yonomi/thincloud-node-sdk/pull/7"},"issue":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/7"},"comments":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Yonomi/thincloud-node-sdk/statuses/6749f8feffde4917a6bad0e357daad2fdc2d9b15"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"stewartjarod"}}