{"action":"closed","number":94,"pull_request":{"url":"https://api.github.com/repos/macbre/nodemw/pulls/94","id":65040458,"html_url":"https://github.com/macbre/nodemw/pull/94","diff_url":"https://github.com/macbre/nodemw/pull/94.diff","patch_url":"https://github.com/macbre/nodemw/pull/94.patch","issue_url":"https://api.github.com/repos/macbre/nodemw/issues/94","number":94,"state":"closed","locked":false,"title":"getToken: use new token API for MW 1.24+ sites","user":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"body":"[Old API](https://www.mediawiki.org/wiki/API:Tokens_(action)) vs [a new one for MW 1.24+](https://www.mediawiki.org/wiki/API:Tokens) - as suggested in #91 by @lagleki\r\n\r\n```\r\ninfo:    Detected MediaWiki v1.19.24\r\ndebug:   API action: query\r\ndebug:   GET <http://nordycka.wikia.com/api.php?action=query&prop=info&intoken=edit&titles=Main_page&format=json>\r\ninfo:    Detected MediaWiki v1.27.0\r\ndebug:   API action: query\r\ndebug:   GET <http://pl.wikipedia.org/w/api.php?action=query&meta=tokens&type=csrf&format=json>\r\n```","created_at":"2016-04-02T15:10:55Z","updated_at":"2016-04-02T15:15:12Z","closed_at":"2016-04-02T15:15:12Z","merged_at":"2016-04-02T15:15:12Z","merge_commit_sha":"9fc1844aea6bf80a2524ddf2866306a2e1cc5596","assignee":null,"milestone":{"url":"https://api.github.com/repos/macbre/nodemw/milestones/7","html_url":"https://github.com/macbre/nodemw/milestones/v0.9","labels_url":"https://api.github.com/repos/macbre/nodemw/milestones/7/labels","id":1679437,"number":7,"title":"v0.9","description":"","creator":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2016-04-02T14:13:28Z","updated_at":"2016-04-02T15:15:12Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/macbre/nodemw/pulls/94/commits","review_comments_url":"https://api.github.com/repos/macbre/nodemw/pulls/94/comments","review_comment_url":"https://api.github.com/repos/macbre/nodemw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/macbre/nodemw/issues/94/comments","statuses_url":"https://api.github.com/repos/macbre/nodemw/statuses/847ef978a7bdfdee0b6393c3dbe95f3e37e17460","head":{"label":"macbre:use-api-token-in-mw.1.24+","ref":"use-api-token-in-mw.1.24+","sha":"847ef978a7bdfdee0b6393c3dbe95f3e37e17460","user":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"repo":{"id":4914019,"name":"nodemw","full_name":"macbre/nodemw","owner":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/macbre/nodemw","description":"MediaWiki API client written in node.js","fork":false,"url":"https://api.github.com/repos/macbre/nodemw","forks_url":"https://api.github.com/repos/macbre/nodemw/forks","keys_url":"https://api.github.com/repos/macbre/nodemw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/macbre/nodemw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/macbre/nodemw/teams","hooks_url":"https://api.github.com/repos/macbre/nodemw/hooks","issue_events_url":"https://api.github.com/repos/macbre/nodemw/issues/events{/number}","events_url":"https://api.github.com/repos/macbre/nodemw/events","assignees_url":"https://api.github.com/repos/macbre/nodemw/assignees{/user}","branches_url":"https://api.github.com/repos/macbre/nodemw/branches{/branch}","tags_url":"https://api.github.com/repos/macbre/nodemw/tags","blobs_url":"https://api.github.com/repos/macbre/nodemw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/macbre/nodemw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/macbre/nodemw/git/refs{/sha}","trees_url":"https://api.github.com/repos/macbre/nodemw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/macbre/nodemw/statuses/{sha}","languages_url":"https://api.github.com/repos/macbre/nodemw/languages","stargazers_url":"https://api.github.com/repos/macbre/nodemw/stargazers","contributors_url":"https://api.github.com/repos/macbre/nodemw/contributors","subscribers_url":"https://api.github.com/repos/macbre/nodemw/subscribers","subscription_url":"https://api.github.com/repos/macbre/nodemw/subscription","commits_url":"https://api.github.com/repos/macbre/nodemw/commits{/sha}","git_commits_url":"https://api.github.com/repos/macbre/nodemw/git/commits{/sha}","comments_url":"https://api.github.com/repos/macbre/nodemw/comments{/number}","issue_comment_url":"https://api.github.com/repos/macbre/nodemw/issues/comments{/number}","contents_url":"https://api.github.com/repos/macbre/nodemw/contents/{+path}","compare_url":"https://api.github.com/repos/macbre/nodemw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/macbre/nodemw/merges","archive_url":"https://api.github.com/repos/macbre/nodemw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/macbre/nodemw/downloads","issues_url":"https://api.github.com/repos/macbre/nodemw/issues{/number}","pulls_url":"https://api.github.com/repos/macbre/nodemw/pulls{/number}","milestones_url":"https://api.github.com/repos/macbre/nodemw/milestones{/number}","notifications_url":"https://api.github.com/repos/macbre/nodemw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/macbre/nodemw/labels{/name}","releases_url":"https://api.github.com/repos/macbre/nodemw/releases{/id}","deployments_url":"https://api.github.com/repos/macbre/nodemw/deployments","created_at":"2012-07-05T19:45:38Z","updated_at":"2016-03-27T20:22:06Z","pushed_at":"2016-04-02T15:15:12Z","git_url":"git://github.com/macbre/nodemw.git","ssh_url":"git@github.com:macbre/nodemw.git","clone_url":"https://github.com/macbre/nodemw.git","svn_url":"https://github.com/macbre/nodemw","homepage":"https://www.npmjs.com/package/nodemw","size":362,"stargazers_count":113,"watchers_count":113,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":2,"forks":29,"open_issues":2,"watchers":113,"default_branch":"devel"}},"base":{"label":"macbre:devel","ref":"devel","sha":"c294dc421a9ca64a7c1d3da18e5eb75aafdab57b","user":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"repo":{"id":4914019,"name":"nodemw","full_name":"macbre/nodemw","owner":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/macbre/nodemw","description":"MediaWiki API client written in node.js","fork":false,"url":"https://api.github.com/repos/macbre/nodemw","forks_url":"https://api.github.com/repos/macbre/nodemw/forks","keys_url":"https://api.github.com/repos/macbre/nodemw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/macbre/nodemw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/macbre/nodemw/teams","hooks_url":"https://api.github.com/repos/macbre/nodemw/hooks","issue_events_url":"https://api.github.com/repos/macbre/nodemw/issues/events{/number}","events_url":"https://api.github.com/repos/macbre/nodemw/events","assignees_url":"https://api.github.com/repos/macbre/nodemw/assignees{/user}","branches_url":"https://api.github.com/repos/macbre/nodemw/branches{/branch}","tags_url":"https://api.github.com/repos/macbre/nodemw/tags","blobs_url":"https://api.github.com/repos/macbre/nodemw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/macbre/nodemw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/macbre/nodemw/git/refs{/sha}","trees_url":"https://api.github.com/repos/macbre/nodemw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/macbre/nodemw/statuses/{sha}","languages_url":"https://api.github.com/repos/macbre/nodemw/languages","stargazers_url":"https://api.github.com/repos/macbre/nodemw/stargazers","contributors_url":"https://api.github.com/repos/macbre/nodemw/contributors","subscribers_url":"https://api.github.com/repos/macbre/nodemw/subscribers","subscription_url":"https://api.github.com/repos/macbre/nodemw/subscription","commits_url":"https://api.github.com/repos/macbre/nodemw/commits{/sha}","git_commits_url":"https://api.github.com/repos/macbre/nodemw/git/commits{/sha}","comments_url":"https://api.github.com/repos/macbre/nodemw/comments{/number}","issue_comment_url":"https://api.github.com/repos/macbre/nodemw/issues/comments{/number}","contents_url":"https://api.github.com/repos/macbre/nodemw/contents/{+path}","compare_url":"https://api.github.com/repos/macbre/nodemw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/macbre/nodemw/merges","archive_url":"https://api.github.com/repos/macbre/nodemw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/macbre/nodemw/downloads","issues_url":"https://api.github.com/repos/macbre/nodemw/issues{/number}","pulls_url":"https://api.github.com/repos/macbre/nodemw/pulls{/number}","milestones_url":"https://api.github.com/repos/macbre/nodemw/milestones{/number}","notifications_url":"https://api.github.com/repos/macbre/nodemw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/macbre/nodemw/labels{/name}","releases_url":"https://api.github.com/repos/macbre/nodemw/releases{/id}","deployments_url":"https://api.github.com/repos/macbre/nodemw/deployments","created_at":"2012-07-05T19:45:38Z","updated_at":"2016-03-27T20:22:06Z","pushed_at":"2016-04-02T15:15:12Z","git_url":"git://github.com/macbre/nodemw.git","ssh_url":"git@github.com:macbre/nodemw.git","clone_url":"https://github.com/macbre/nodemw.git","svn_url":"https://github.com/macbre/nodemw","homepage":"https://www.npmjs.com/package/nodemw","size":362,"stargazers_count":113,"watchers_count":113,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":2,"forks":29,"open_issues":2,"watchers":113,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/macbre/nodemw/pulls/94"},"html":{"href":"https://github.com/macbre/nodemw/pull/94"},"issue":{"href":"https://api.github.com/repos/macbre/nodemw/issues/94"},"comments":{"href":"https://api.github.com/repos/macbre/nodemw/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/macbre/nodemw/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/macbre/nodemw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/macbre/nodemw/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/macbre/nodemw/statuses/847ef978a7bdfdee0b6393c3dbe95f3e37e17460"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"macbre","id":1929317,"avatar_url":"https://avatars.githubusercontent.com/u/1929317?v=3","gravatar_id":"","url":"https://api.github.com/users/macbre","html_url":"https://github.com/macbre","followers_url":"https://api.github.com/users/macbre/followers","following_url":"https://api.github.com/users/macbre/following{/other_user}","gists_url":"https://api.github.com/users/macbre/gists{/gist_id}","starred_url":"https://api.github.com/users/macbre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macbre/subscriptions","organizations_url":"https://api.github.com/users/macbre/orgs","repos_url":"https://api.github.com/users/macbre/repos","events_url":"https://api.github.com/users/macbre/events{/privacy}","received_events_url":"https://api.github.com/users/macbre/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":70,"deletions":18,"changed_files":4}}