{"action":"created","comment":{"url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/comments/199906030","pull_request_review_id":134116690,"id":199906030,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTkwNjAzMA==","diff_hunk":"@@ -0,0 +1,47 @@\n+'use strict';\n+\n+const assert = require('assert');\n+const Circuit = require('../../circuit-node');\n+const config = require('./config.json');\n+const helper = require('./helper');\n+Circuit.logger.setLevel(Circuit.Enums.LogLevel.Error);\n+\n+let client;\n+let user;\n+let client2;\n+let user2;\n+let conversation;\n+describe('Users', () => {\n+    before(async () => {\n+        client = new Circuit.Client(config.bot1);\n+        user = await client.logon();\n+        client2 = new Circuit.Client(config.bot2);\n+        user2 = await client2.logon();\n+    });\n+\n+    after(async () => {\n+        await client.logout();\n+        await client2.logout();\n+    });\n+\n+    it('should get the logged on users', async () => {\n+       const userData1 = await client.getLoggedOnUser(); \n+       const userData2 = await client2.getLoggedOnUser();\n+       assert(userData1 && userData2 && userData1.userId === user.userId && userData2.userId === user2.userId); \n+    });\n+\n+    it('should get user by their Id', async () => {\n+        const res = await client.getUserById(user.userId);","path":"test/node/users.js","position":34,"original_position":34,"commit_id":"b24433b54b2ea5d1331dcc88ff5d3de7cb374140","original_commit_id":"b24433b54b2ea5d1331dcc88ff5d3de7cb374140","user":{"login":"richardfazzio","id":33834648,"node_id":"MDQ6VXNlcjMzODM0NjQ4","avatar_url":"https://avatars3.githubusercontent.com/u/33834648?v=4","gravatar_id":"","url":"https://api.github.com/users/richardfazzio","html_url":"https://github.com/richardfazzio","followers_url":"https://api.github.com/users/richardfazzio/followers","following_url":"https://api.github.com/users/richardfazzio/following{/other_user}","gists_url":"https://api.github.com/users/richardfazzio/gists{/gist_id}","starred_url":"https://api.github.com/users/richardfazzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardfazzio/subscriptions","organizations_url":"https://api.github.com/users/richardfazzio/orgs","repos_url":"https://api.github.com/users/richardfazzio/repos","events_url":"https://api.github.com/users/richardfazzio/events{/privacy}","received_events_url":"https://api.github.com/users/richardfazzio/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-07-03T18:17:49Z","updated_at":"2018-07-03T18:17:50Z","html_url":"https://github.com/circuit/circuit-sdk/pull/5#discussion_r199906030","pull_request_url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/comments/199906030"},"html":{"href":"https://github.com/circuit/circuit-sdk/pull/5#discussion_r199906030"},"pull_request":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5"}},"in_reply_to_id":199903860},"pull_request":{"url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5","id":198695339,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4Njk1MzM5","html_url":"https://github.com/circuit/circuit-sdk/pull/5","diff_url":"https://github.com/circuit/circuit-sdk/pull/5.diff","patch_url":"https://github.com/circuit/circuit-sdk/pull/5.patch","issue_url":"https://api.github.com/repos/circuit/circuit-sdk/issues/5","number":5,"state":"open","locked":false,"title":"Add Tests: conversation-archived.js, conversation-favorite.js, conver…","user":{"login":"richardfazzio","id":33834648,"node_id":"MDQ6VXNlcjMzODM0NjQ4","avatar_url":"https://avatars3.githubusercontent.com/u/33834648?v=4","gravatar_id":"","url":"https://api.github.com/users/richardfazzio","html_url":"https://github.com/richardfazzio","followers_url":"https://api.github.com/users/richardfazzio/followers","following_url":"https://api.github.com/users/richardfazzio/following{/other_user}","gists_url":"https://api.github.com/users/richardfazzio/gists{/gist_id}","starred_url":"https://api.github.com/users/richardfazzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardfazzio/subscriptions","organizations_url":"https://api.github.com/users/richardfazzio/orgs","repos_url":"https://api.github.com/users/richardfazzio/repos","events_url":"https://api.github.com/users/richardfazzio/events{/privacy}","received_events_url":"https://api.github.com/users/richardfazzio/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-02T14:22:13Z","updated_at":"2018-07-03T18:17:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecdcff2b53527b6f7307cb59adf00495aa0c79f1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5/commits","review_comments_url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5/comments","review_comment_url":"https://api.github.com/repos/circuit/circuit-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/circuit/circuit-sdk/issues/5/comments","statuses_url":"https://api.github.com/repos/circuit/circuit-sdk/statuses/b24433b54b2ea5d1331dcc88ff5d3de7cb374140","head":{"label":"richardfazzio:beta","ref":"beta","sha":"b24433b54b2ea5d1331dcc88ff5d3de7cb374140","user":{"login":"richardfazzio","id":33834648,"node_id":"MDQ6VXNlcjMzODM0NjQ4","avatar_url":"https://avatars3.githubusercontent.com/u/33834648?v=4","gravatar_id":"","url":"https://api.github.com/users/richardfazzio","html_url":"https://github.com/richardfazzio","followers_url":"https://api.github.com/users/richardfazzio/followers","following_url":"https://api.github.com/users/richardfazzio/following{/other_user}","gists_url":"https://api.github.com/users/richardfazzio/gists{/gist_id}","starred_url":"https://api.github.com/users/richardfazzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardfazzio/subscriptions","organizations_url":"https://api.github.com/users/richardfazzio/orgs","repos_url":"https://api.github.com/users/richardfazzio/repos","events_url":"https://api.github.com/users/richardfazzio/events{/privacy}","received_events_url":"https://api.github.com/users/richardfazzio/received_events","type":"User","site_admin":false},"repo":{"id":136647777,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY2NDc3Nzc=","name":"circuit-sdk","full_name":"richardfazzio/circuit-sdk","owner":{"login":"richardfazzio","id":33834648,"node_id":"MDQ6VXNlcjMzODM0NjQ4","avatar_url":"https://avatars3.githubusercontent.com/u/33834648?v=4","gravatar_id":"","url":"https://api.github.com/users/richardfazzio","html_url":"https://github.com/richardfazzio","followers_url":"https://api.github.com/users/richardfazzio/followers","following_url":"https://api.github.com/users/richardfazzio/following{/other_user}","gists_url":"https://api.github.com/users/richardfazzio/gists{/gist_id}","starred_url":"https://api.github.com/users/richardfazzio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardfazzio/subscriptions","organizations_url":"https://api.github.com/users/richardfazzio/orgs","repos_url":"https://api.github.com/users/richardfazzio/repos","events_url":"https://api.github.com/users/richardfazzio/events{/privacy}","received_events_url":"https://api.github.com/users/richardfazzio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/richardfazzio/circuit-sdk","description":"JavaScript and Node.js SDK for Circuit","fork":true,"url":"https://api.github.com/repos/richardfazzio/circuit-sdk","forks_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/forks","keys_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/teams","hooks_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/hooks","issue_events_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/events","assignees_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/tags","blobs_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/languages","stargazers_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/stargazers","contributors_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/contributors","subscribers_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/subscribers","subscription_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/subscription","commits_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/merges","archive_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/downloads","issues_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/labels{/name}","releases_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/richardfazzio/circuit-sdk/deployments","created_at":"2018-06-08T17:27:23Z","updated_at":"2018-06-08T17:27:25Z","pushed_at":"2018-07-03T17:59:06Z","git_url":"git://github.com/richardfazzio/circuit-sdk.git","ssh_url":"git@github.com:richardfazzio/circuit-sdk.git","clone_url":"https://github.com/richardfazzio/circuit-sdk.git","svn_url":"https://github.com/richardfazzio/circuit-sdk","homepage":"https://www.circuit.com","size":2412,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"circuit:beta","ref":"beta","sha":"8c9a76bff7cb4c6fbda3374bd85a23634946504b","user":{"login":"circuit","id":11351712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzUxNzEy","avatar_url":"https://avatars2.githubusercontent.com/u/11351712?v=4","gravatar_id":"","url":"https://api.github.com/users/circuit","html_url":"https://github.com/circuit","followers_url":"https://api.github.com/users/circuit/followers","following_url":"https://api.github.com/users/circuit/following{/other_user}","gists_url":"https://api.github.com/users/circuit/gists{/gist_id}","starred_url":"https://api.github.com/users/circuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circuit/subscriptions","organizations_url":"https://api.github.com/users/circuit/orgs","repos_url":"https://api.github.com/users/circuit/repos","events_url":"https://api.github.com/users/circuit/events{/privacy}","received_events_url":"https://api.github.com/users/circuit/received_events","type":"Organization","site_admin":false},"repo":{"id":98701529,"node_id":"MDEwOlJlcG9zaXRvcnk5ODcwMTUyOQ==","name":"circuit-sdk","full_name":"circuit/circuit-sdk","owner":{"login":"circuit","id":11351712,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzUxNzEy","avatar_url":"https://avatars2.githubusercontent.com/u/11351712?v=4","gravatar_id":"","url":"https://api.github.com/users/circuit","html_url":"https://github.com/circuit","followers_url":"https://api.github.com/users/circuit/followers","following_url":"https://api.github.com/users/circuit/following{/other_user}","gists_url":"https://api.github.com/users/circuit/gists{/gist_id}","starred_url":"https://api.github.com/users/circuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/circuit/subscriptions","organizations_url":"https://api.github.com/users/circuit/orgs","repos_url":"https://api.github.com/users/circuit/repos","events_url":"https://api.github.com/users/circuit/events{/privacy}","received_events_url":"https://api.github.com/users/circuit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/circuit/circuit-sdk","description":"JavaScript and Node.js SDK for Circuit","fork":false,"url":"https://api.github.com/repos/circuit/circuit-sdk","forks_url":"https://api.github.com/repos/circuit/circuit-sdk/forks","keys_url":"https://api.github.com/repos/circuit/circuit-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/circuit/circuit-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/circuit/circuit-sdk/teams","hooks_url":"https://api.github.com/repos/circuit/circuit-sdk/hooks","issue_events_url":"https://api.github.com/repos/circuit/circuit-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/circuit/circuit-sdk/events","assignees_url":"https://api.github.com/repos/circuit/circuit-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/circuit/circuit-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/circuit/circuit-sdk/tags","blobs_url":"https://api.github.com/repos/circuit/circuit-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/circuit/circuit-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/circuit/circuit-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/circuit/circuit-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/circuit/circuit-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/circuit/circuit-sdk/languages","stargazers_url":"https://api.github.com/repos/circuit/circuit-sdk/stargazers","contributors_url":"https://api.github.com/repos/circuit/circuit-sdk/contributors","subscribers_url":"https://api.github.com/repos/circuit/circuit-sdk/subscribers","subscription_url":"https://api.github.com/repos/circuit/circuit-sdk/subscription","commits_url":"https://api.github.com/repos/circuit/circuit-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/circuit/circuit-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/circuit/circuit-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/circuit/circuit-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/circuit/circuit-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/circuit/circuit-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/circuit/circuit-sdk/merges","archive_url":"https://api.github.com/repos/circuit/circuit-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/circuit/circuit-sdk/downloads","issues_url":"https://api.github.com/repos/circuit/circuit-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/circuit/circuit-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/circuit/circuit-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/circuit/circuit-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/circuit/circuit-sdk/labels{/name}","releases_url":"https://api.github.com/repos/circuit/circuit-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/circuit/circuit-sdk/deployments","created_at":"2017-07-29T02:02:14Z","updated_at":"2018-07-03T12:14:01Z","pushed_at":"2018-07-03T17:59:08Z","git_url":"git://github.com/circuit/circuit-sdk.git","ssh_url":"git@github.com:circuit/circuit-sdk.git","clone_url":"https://github.com/circuit/circuit-sdk.git","svn_url":"https://github.com/circuit/circuit-sdk","homepage":"https://www.circuit.com","size":3091,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5"},"html":{"href":"https://github.com/circuit/circuit-sdk/pull/5"},"issue":{"href":"https://api.github.com/repos/circuit/circuit-sdk/issues/5"},"comments":{"href":"https://api.github.com/repos/circuit/circuit-sdk/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/circuit/circuit-sdk/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/circuit/circuit-sdk/statuses/b24433b54b2ea5d1331dcc88ff5d3de7cb374140"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"richardfazzio"}}