Skip to content

use new meta method to fetch token#91

Open
MusikAnimal wants to merge 1 commit intojpatokal:masterfrom
MusikAnimal:metatoken
Open

use new meta method to fetch token#91
MusikAnimal wants to merge 1 commit intojpatokal:masterfrom
MusikAnimal:metatoken

Conversation

@MusikAnimal
Copy link
Copy Markdown
Contributor

Per API:Tokens, with MediaWiki v1.24 or later we should be fetching a token via action=query&meta=tokens, disregarding the page we are actioning on. This of course means we are dropping support for earlier MediaWiki versions. Maybe there's a way to check which version they are using?

@jpatokal
Copy link
Copy Markdown
Owner

Thanks, but since people often use this to connect to older versions I can't accept a breaking change. Can you rewrite this either to try/catch both methods, or poke at eg. https://www.mediawiki.org/wiki/API:Siteinfo and check the version there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants