{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13","id":70775607,"html_url":"https://github.com/hengyunabc/zabbix-api/pull/13","diff_url":"https://github.com/hengyunabc/zabbix-api/pull/13.diff","patch_url":"https://github.com/hengyunabc/zabbix-api/pull/13.patch","issue_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/13","number":13,"state":"open","locked":false,"title":"Force clearing of this.auth in login() to allow relogin","user":{"login":"v-zhuravlev","id":14870891,"avatar_url":"https://avatars.githubusercontent.com/u/14870891?v=3","gravatar_id":"","url":"https://api.github.com/users/v-zhuravlev","html_url":"https://github.com/v-zhuravlev","followers_url":"https://api.github.com/users/v-zhuravlev/followers","following_url":"https://api.github.com/users/v-zhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/v-zhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-zhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-zhuravlev/subscriptions","organizations_url":"https://api.github.com/users/v-zhuravlev/orgs","repos_url":"https://api.github.com/users/v-zhuravlev/repos","events_url":"https://api.github.com/users/v-zhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/v-zhuravlev/received_events","type":"User","site_admin":false},"body":"To handle the situation when you need to relogin (ie authkey expired or deleted from sessions table):\r\nForce clearing of this.auth in login() method to allow relogin to happen without the error below. \r\n\r\nExample of response that would happen now if try to relogin with auth key:\r\n\r\n\r\n```\r\n{\r\n  \"jsonrpc\": \"2.0\",\r\n  \"error\": {\r\n    \"code\": -32602,\r\n    \"message\": \"Invalid params.\",\r\n    \"data\": \"The \\\"user.login\\\" method must be called without the \\\"auth\\\" parameter.\"\r\n  },\r\n  \"id\": 1\r\n}\r\n```\r\n\r\n\r\n","created_at":"2016-05-19T22:26:06Z","updated_at":"2016-05-19T22:26:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13/commits","review_comments_url":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13/comments","review_comment_url":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/13/comments","statuses_url":"https://api.github.com/repos/hengyunabc/zabbix-api/statuses/13140347986636735e1dd52b07fd2012fb06bfc5","head":{"label":"v-zhuravlev:develop","ref":"develop","sha":"13140347986636735e1dd52b07fd2012fb06bfc5","user":{"login":"v-zhuravlev","id":14870891,"avatar_url":"https://avatars.githubusercontent.com/u/14870891?v=3","gravatar_id":"","url":"https://api.github.com/users/v-zhuravlev","html_url":"https://github.com/v-zhuravlev","followers_url":"https://api.github.com/users/v-zhuravlev/followers","following_url":"https://api.github.com/users/v-zhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/v-zhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-zhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-zhuravlev/subscriptions","organizations_url":"https://api.github.com/users/v-zhuravlev/orgs","repos_url":"https://api.github.com/users/v-zhuravlev/repos","events_url":"https://api.github.com/users/v-zhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/v-zhuravlev/received_events","type":"User","site_admin":false},"repo":{"id":58928917,"name":"zabbix-api","full_name":"v-zhuravlev/zabbix-api","owner":{"login":"v-zhuravlev","id":14870891,"avatar_url":"https://avatars.githubusercontent.com/u/14870891?v=3","gravatar_id":"","url":"https://api.github.com/users/v-zhuravlev","html_url":"https://github.com/v-zhuravlev","followers_url":"https://api.github.com/users/v-zhuravlev/followers","following_url":"https://api.github.com/users/v-zhuravlev/following{/other_user}","gists_url":"https://api.github.com/users/v-zhuravlev/gists{/gist_id}","starred_url":"https://api.github.com/users/v-zhuravlev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-zhuravlev/subscriptions","organizations_url":"https://api.github.com/users/v-zhuravlev/orgs","repos_url":"https://api.github.com/users/v-zhuravlev/repos","events_url":"https://api.github.com/users/v-zhuravlev/events{/privacy}","received_events_url":"https://api.github.com/users/v-zhuravlev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/v-zhuravlev/zabbix-api","description":"zabbix-api for java","fork":true,"url":"https://api.github.com/repos/v-zhuravlev/zabbix-api","forks_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/forks","keys_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/teams","hooks_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/hooks","issue_events_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/issues/events{/number}","events_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/events","assignees_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/assignees{/user}","branches_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/branches{/branch}","tags_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/tags","blobs_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/statuses/{sha}","languages_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/languages","stargazers_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/stargazers","contributors_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/contributors","subscribers_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/subscribers","subscription_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/subscription","commits_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/contents/{+path}","compare_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/merges","archive_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/downloads","issues_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/issues{/number}","pulls_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/pulls{/number}","milestones_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/milestones{/number}","notifications_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/labels{/name}","releases_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/releases{/id}","deployments_url":"https://api.github.com/repos/v-zhuravlev/zabbix-api/deployments","created_at":"2016-05-16T11:56:38Z","updated_at":"2016-05-16T11:56:39Z","pushed_at":"2016-05-19T22:21:06Z","git_url":"git://github.com/v-zhuravlev/zabbix-api.git","ssh_url":"git@github.com:v-zhuravlev/zabbix-api.git","clone_url":"https://github.com/v-zhuravlev/zabbix-api.git","svn_url":"https://github.com/v-zhuravlev/zabbix-api","homepage":"","size":28,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hengyunabc:develop","ref":"develop","sha":"53b0cc584eb9de208281d44add572b9fd5539e58","user":{"login":"hengyunabc","id":1683936,"avatar_url":"https://avatars.githubusercontent.com/u/1683936?v=3","gravatar_id":"","url":"https://api.github.com/users/hengyunabc","html_url":"https://github.com/hengyunabc","followers_url":"https://api.github.com/users/hengyunabc/followers","following_url":"https://api.github.com/users/hengyunabc/following{/other_user}","gists_url":"https://api.github.com/users/hengyunabc/gists{/gist_id}","starred_url":"https://api.github.com/users/hengyunabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hengyunabc/subscriptions","organizations_url":"https://api.github.com/users/hengyunabc/orgs","repos_url":"https://api.github.com/users/hengyunabc/repos","events_url":"https://api.github.com/users/hengyunabc/events{/privacy}","received_events_url":"https://api.github.com/users/hengyunabc/received_events","type":"User","site_admin":false},"repo":{"id":30584342,"name":"zabbix-api","full_name":"hengyunabc/zabbix-api","owner":{"login":"hengyunabc","id":1683936,"avatar_url":"https://avatars.githubusercontent.com/u/1683936?v=3","gravatar_id":"","url":"https://api.github.com/users/hengyunabc","html_url":"https://github.com/hengyunabc","followers_url":"https://api.github.com/users/hengyunabc/followers","following_url":"https://api.github.com/users/hengyunabc/following{/other_user}","gists_url":"https://api.github.com/users/hengyunabc/gists{/gist_id}","starred_url":"https://api.github.com/users/hengyunabc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hengyunabc/subscriptions","organizations_url":"https://api.github.com/users/hengyunabc/orgs","repos_url":"https://api.github.com/users/hengyunabc/repos","events_url":"https://api.github.com/users/hengyunabc/events{/privacy}","received_events_url":"https://api.github.com/users/hengyunabc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hengyunabc/zabbix-api","description":"zabbix-api for java","fork":false,"url":"https://api.github.com/repos/hengyunabc/zabbix-api","forks_url":"https://api.github.com/repos/hengyunabc/zabbix-api/forks","keys_url":"https://api.github.com/repos/hengyunabc/zabbix-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hengyunabc/zabbix-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hengyunabc/zabbix-api/teams","hooks_url":"https://api.github.com/repos/hengyunabc/zabbix-api/hooks","issue_events_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/events{/number}","events_url":"https://api.github.com/repos/hengyunabc/zabbix-api/events","assignees_url":"https://api.github.com/repos/hengyunabc/zabbix-api/assignees{/user}","branches_url":"https://api.github.com/repos/hengyunabc/zabbix-api/branches{/branch}","tags_url":"https://api.github.com/repos/hengyunabc/zabbix-api/tags","blobs_url":"https://api.github.com/repos/hengyunabc/zabbix-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hengyunabc/zabbix-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hengyunabc/zabbix-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hengyunabc/zabbix-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hengyunabc/zabbix-api/statuses/{sha}","languages_url":"https://api.github.com/repos/hengyunabc/zabbix-api/languages","stargazers_url":"https://api.github.com/repos/hengyunabc/zabbix-api/stargazers","contributors_url":"https://api.github.com/repos/hengyunabc/zabbix-api/contributors","subscribers_url":"https://api.github.com/repos/hengyunabc/zabbix-api/subscribers","subscription_url":"https://api.github.com/repos/hengyunabc/zabbix-api/subscription","commits_url":"https://api.github.com/repos/hengyunabc/zabbix-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hengyunabc/zabbix-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hengyunabc/zabbix-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hengyunabc/zabbix-api/contents/{+path}","compare_url":"https://api.github.com/repos/hengyunabc/zabbix-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hengyunabc/zabbix-api/merges","archive_url":"https://api.github.com/repos/hengyunabc/zabbix-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hengyunabc/zabbix-api/downloads","issues_url":"https://api.github.com/repos/hengyunabc/zabbix-api/issues{/number}","pulls_url":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls{/number}","milestones_url":"https://api.github.com/repos/hengyunabc/zabbix-api/milestones{/number}","notifications_url":"https://api.github.com/repos/hengyunabc/zabbix-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hengyunabc/zabbix-api/labels{/name}","releases_url":"https://api.github.com/repos/hengyunabc/zabbix-api/releases{/id}","deployments_url":"https://api.github.com/repos/hengyunabc/zabbix-api/deployments","created_at":"2015-02-10T09:19:47Z","updated_at":"2016-05-12T12:39:07Z","pushed_at":"2016-05-16T14:41:06Z","git_url":"git://github.com/hengyunabc/zabbix-api.git","ssh_url":"git@github.com:hengyunabc/zabbix-api.git","clone_url":"https://github.com/hengyunabc/zabbix-api.git","svn_url":"https://github.com/hengyunabc/zabbix-api","homepage":"","size":34,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13"},"html":{"href":"https://github.com/hengyunabc/zabbix-api/pull/13"},"issue":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/13"},"comments":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/hengyunabc/zabbix-api/statuses/13140347986636735e1dd52b07fd2012fb06bfc5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"v-zhuravlev"}}