mediawiki icon indicating copy to clipboard operation
mediawiki copied to clipboard

A JavaScript framework for the MediaWiki API.

Results 8 mediawiki issues
Sort by recently updated
recently updated
newest added

``` /home/runner/MyBot/node_modules/mediawiki/mediawiki.js:50 Promise.prototype._onError = function (err) { throw err; }; ^ Error: 301 at Request._callback (/home/runner/MyBot/node_modules/mediawiki/mediawiki.js:181:46) at Request.self.callback (/home/runner/MyBot /node_modules/mediawiki/node_modules/request/request.js:121:22) at Request.emit (events.js:314:20) at Request.EventEmitter.emit (domain.js:483:12) at Request. (/home/runner/MyBot/node_modules/mediawiki/node_modules/request/request.js:978:14) at...

consistency in directions with library name

` { error: { code: 'mustpostparams', info: 'The following parameter was found in the query string, but must be in the POST body: lgpassword.', '*': 'See http://wiki-test:8080/api.php for API usage....

- Fix: `login`/`edit`/`add` issues (must be body only; request requires `post` method now; use non-deprecated token-retrieval); it appears tokens are now always required - Fix: Error not given to `_onError`...

When I try this: ``` javascript var MediaWiki = require('mediawiki'); var bot = new MediaWiki.Bot({ endpoint: "https://en.wikipedia.org/w/api.php", rate: 60e3 / 10, userAgent: "ExampleBot ", byeline: "(example bot edit)" }); bot.login('my_username',...

Fixed some references in the example code to make it usable by copy/paste, added syntax highlighting, and made the browser example a clickable link.

Can you add new functions for move, delete, add/remove watchlist, protect/unprotecting pages? Most importantly, moving and deleting pages. would be very useful.

Whenever I try to add a redirect, I get the following error stack. I can create/overwrite a page just fine, however it fails when I set the content to `"#REDIRECT...