{"action":"created","comment":{"url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/comments/94920822","pull_request_review_id":15462788,"id":94920822,"diff_hunk":"@@ -350,6 +350,18 @@ func (cli *Client) Login(req *ReqLogin, setOnClient bool) (resp *RespLogin, err\n \treturn\n }\n \n+// Logout the current user. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-logout\n+// If \"removeCredentials\" is true, the user ID and access token will be removed from this client instance on success.\n+func (cli *Client) Logout(removeCredentials bool) (resp *RespLogout, err error) {\n+\turlPath := cli.BuildURL(\"logout\")\n+\t_, err = cli.MakeRequest(\"POST\", urlPath, nil, &resp)\n+\tif removeCredentials && err == nil {","path":"client.go","position":9,"original_position":9,"commit_id":"0827f53d1c9e6be7e9f846dd28ca31ebfbfcff1f","original_commit_id":"0827f53d1c9e6be7e9f846dd28ca31ebfbfcff1f","user":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"body":"> Although people who use go might be more used to jumping through hoops?\r\n\r\nCan't argue with that. I'll make it 2 methods then.","created_at":"2017-01-06T09:36:51Z","updated_at":"2017-01-06T09:36:51Z","html_url":"https://github.com/matrix-org/gomatrix/pull/11#discussion_r94920822","pull_request_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/comments/94920822"},"html":{"href":"https://github.com/matrix-org/gomatrix/pull/11#discussion_r94920822"},"pull_request":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11","id":100296916,"html_url":"https://github.com/matrix-org/gomatrix/pull/11","diff_url":"https://github.com/matrix-org/gomatrix/pull/11.diff","patch_url":"https://github.com/matrix-org/gomatrix/pull/11.patch","issue_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/11","number":11,"state":"open","locked":false,"title":"Add /logout API","user":{"login":"Kegsay","id":7190048,"avatar_url":"https://avatars.githubusercontent.com/u/7190048?v=3","gravatar_id":"","url":"https://api.github.com/users/Kegsay","html_url":"https://github.com/Kegsay","followers_url":"https://api.github.com/users/Kegsay/followers","following_url":"https://api.github.com/users/Kegsay/following{/other_user}","gists_url":"https://api.github.com/users/Kegsay/gists{/gist_id}","starred_url":"https://api.github.com/users/Kegsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kegsay/subscriptions","organizations_url":"https://api.github.com/users/Kegsay/orgs","repos_url":"https://api.github.com/users/Kegsay/repos","events_url":"https://api.github.com/users/Kegsay/events{/privacy}","received_events_url":"https://api.github.com/users/Kegsay/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-05T14:17:28Z","updated_at":"2017-01-06T09:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d5079e79a97ee4599f7fe8af74f1bc8af89ef6b","assignee":{"login":"NegativeMjark","id":904009,"avatar_url":"https://avatars.githubusercontent.com/u/904009?v=3","gravatar_id":"","url":"https://api.github.com/users/NegativeMjark","html_url":"https://github.com/NegativeMjark","followers_url":"https://api.github.com/users/NegativeMjark/followers","following_url":"https://api.github.com/users/NegativeMjark/following{/other_user}","gists_url":"https://api.github.com/users/NegativeMjark/gists{/gist_id}","starred_url":"https://api.github.com/users/NegativeMjark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NegativeMjark/subscriptions","organizations_url":"https://api.github.com/users/NegativeMjark/orgs","repos_url":"https://api.github.com/users/NegativeMjark/repos","events_url":"https://api.github.com/users/NegativeMjark/events{/privacy}","received_events_url":"https://api.github.com/users/NegativeMjark/received_events","type":"User","site_admin":false},"assignees":[{"login":"NegativeMjark","id":904009,"avatar_url":"https://avatars.githubusercontent.com/u/904009?v=3","gravatar_id":"","url":"https://api.github.com/users/NegativeMjark","html_url":"https://github.com/NegativeMjark","followers_url":"https://api.github.com/users/NegativeMjark/followers","following_url":"https://api.github.com/users/NegativeMjark/following{/other_user}","gists_url":"https://api.github.com/users/NegativeMjark/gists{/gist_id}","starred_url":"https://api.github.com/users/NegativeMjark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NegativeMjark/subscriptions","organizations_url":"https://api.github.com/users/NegativeMjark/orgs","repos_url":"https://api.github.com/users/NegativeMjark/repos","events_url":"https://api.github.com/users/NegativeMjark/events{/privacy}","received_events_url":"https://api.github.com/users/NegativeMjark/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11/commits","review_comments_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11/comments","review_comment_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/11/comments","statuses_url":"https://api.github.com/repos/matrix-org/gomatrix/statuses/0827f53d1c9e6be7e9f846dd28ca31ebfbfcff1f","head":{"label":"matrix-org:kegan/api-logout","ref":"kegan/api-logout","sha":"0827f53d1c9e6be7e9f846dd28ca31ebfbfcff1f","user":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"repo":{"id":75100882,"name":"gomatrix","full_name":"matrix-org/gomatrix","owner":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matrix-org/gomatrix","description":"A Golang Matrix client","fork":false,"url":"https://api.github.com/repos/matrix-org/gomatrix","forks_url":"https://api.github.com/repos/matrix-org/gomatrix/forks","keys_url":"https://api.github.com/repos/matrix-org/gomatrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-org/gomatrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-org/gomatrix/teams","hooks_url":"https://api.github.com/repos/matrix-org/gomatrix/hooks","issue_events_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-org/gomatrix/events","assignees_url":"https://api.github.com/repos/matrix-org/gomatrix/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-org/gomatrix/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-org/gomatrix/tags","blobs_url":"https://api.github.com/repos/matrix-org/gomatrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-org/gomatrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-org/gomatrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-org/gomatrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-org/gomatrix/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-org/gomatrix/languages","stargazers_url":"https://api.github.com/repos/matrix-org/gomatrix/stargazers","contributors_url":"https://api.github.com/repos/matrix-org/gomatrix/contributors","subscribers_url":"https://api.github.com/repos/matrix-org/gomatrix/subscribers","subscription_url":"https://api.github.com/repos/matrix-org/gomatrix/subscription","commits_url":"https://api.github.com/repos/matrix-org/gomatrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-org/gomatrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-org/gomatrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-org/gomatrix/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-org/gomatrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-org/gomatrix/merges","archive_url":"https://api.github.com/repos/matrix-org/gomatrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-org/gomatrix/downloads","issues_url":"https://api.github.com/repos/matrix-org/gomatrix/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-org/gomatrix/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-org/gomatrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-org/gomatrix/labels{/name}","releases_url":"https://api.github.com/repos/matrix-org/gomatrix/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-org/gomatrix/deployments","created_at":"2016-11-29T16:35:31Z","updated_at":"2016-12-27T22:31:16Z","pushed_at":"2017-01-05T18:39:42Z","git_url":"git://github.com/matrix-org/gomatrix.git","ssh_url":"git@github.com:matrix-org/gomatrix.git","clone_url":"https://github.com/matrix-org/gomatrix.git","svn_url":"https://github.com/matrix-org/gomatrix","homepage":null,"size":66,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"matrix-org:master","ref":"master","sha":"373dfc2ff2d1a29c00652fe42b8d69abd651f189","user":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"repo":{"id":75100882,"name":"gomatrix","full_name":"matrix-org/gomatrix","owner":{"login":"matrix-org","id":8418310,"avatar_url":"https://avatars.githubusercontent.com/u/8418310?v=3","gravatar_id":"","url":"https://api.github.com/users/matrix-org","html_url":"https://github.com/matrix-org","followers_url":"https://api.github.com/users/matrix-org/followers","following_url":"https://api.github.com/users/matrix-org/following{/other_user}","gists_url":"https://api.github.com/users/matrix-org/gists{/gist_id}","starred_url":"https://api.github.com/users/matrix-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matrix-org/subscriptions","organizations_url":"https://api.github.com/users/matrix-org/orgs","repos_url":"https://api.github.com/users/matrix-org/repos","events_url":"https://api.github.com/users/matrix-org/events{/privacy}","received_events_url":"https://api.github.com/users/matrix-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matrix-org/gomatrix","description":"A Golang Matrix client","fork":false,"url":"https://api.github.com/repos/matrix-org/gomatrix","forks_url":"https://api.github.com/repos/matrix-org/gomatrix/forks","keys_url":"https://api.github.com/repos/matrix-org/gomatrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matrix-org/gomatrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matrix-org/gomatrix/teams","hooks_url":"https://api.github.com/repos/matrix-org/gomatrix/hooks","issue_events_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/events{/number}","events_url":"https://api.github.com/repos/matrix-org/gomatrix/events","assignees_url":"https://api.github.com/repos/matrix-org/gomatrix/assignees{/user}","branches_url":"https://api.github.com/repos/matrix-org/gomatrix/branches{/branch}","tags_url":"https://api.github.com/repos/matrix-org/gomatrix/tags","blobs_url":"https://api.github.com/repos/matrix-org/gomatrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matrix-org/gomatrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matrix-org/gomatrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/matrix-org/gomatrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matrix-org/gomatrix/statuses/{sha}","languages_url":"https://api.github.com/repos/matrix-org/gomatrix/languages","stargazers_url":"https://api.github.com/repos/matrix-org/gomatrix/stargazers","contributors_url":"https://api.github.com/repos/matrix-org/gomatrix/contributors","subscribers_url":"https://api.github.com/repos/matrix-org/gomatrix/subscribers","subscription_url":"https://api.github.com/repos/matrix-org/gomatrix/subscription","commits_url":"https://api.github.com/repos/matrix-org/gomatrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/matrix-org/gomatrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/matrix-org/gomatrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/matrix-org/gomatrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/matrix-org/gomatrix/contents/{+path}","compare_url":"https://api.github.com/repos/matrix-org/gomatrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matrix-org/gomatrix/merges","archive_url":"https://api.github.com/repos/matrix-org/gomatrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matrix-org/gomatrix/downloads","issues_url":"https://api.github.com/repos/matrix-org/gomatrix/issues{/number}","pulls_url":"https://api.github.com/repos/matrix-org/gomatrix/pulls{/number}","milestones_url":"https://api.github.com/repos/matrix-org/gomatrix/milestones{/number}","notifications_url":"https://api.github.com/repos/matrix-org/gomatrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matrix-org/gomatrix/labels{/name}","releases_url":"https://api.github.com/repos/matrix-org/gomatrix/releases{/id}","deployments_url":"https://api.github.com/repos/matrix-org/gomatrix/deployments","created_at":"2016-11-29T16:35:31Z","updated_at":"2016-12-27T22:31:16Z","pushed_at":"2017-01-05T18:39:42Z","git_url":"git://github.com/matrix-org/gomatrix.git","ssh_url":"git@github.com:matrix-org/gomatrix.git","clone_url":"https://github.com/matrix-org/gomatrix.git","svn_url":"https://github.com/matrix-org/gomatrix","homepage":null,"size":66,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11"},"html":{"href":"https://github.com/matrix-org/gomatrix/pull/11"},"issue":{"href":"https://api.github.com/repos/matrix-org/gomatrix/issues/11"},"comments":{"href":"https://api.github.com/repos/matrix-org/gomatrix/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matrix-org/gomatrix/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/matrix-org/gomatrix/statuses/0827f53d1c9e6be7e9f846dd28ca31ebfbfcff1f"}}}}
{"actor":{"display_login":"Kegsay"}}