Re: Programmatically get download link for an extension

Sam Wilson <[email protected]> Mon, 2 Oct 2023 21:54:46 +0800
Newsgroups gmane.org.wikimedia.mediawiki
Message-ID <[email protected]>
The ExtensionDistributor 
<https://www.mediawiki.org/wiki/Extension:ExtensionDistributor> API can 
get you download URLs, e.g. this:

https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&format=json&list=extdistbranches&formatversion=2&edbexts=WikiEditor 
<https://www.mediawiki.org/wiki/Special:ApiSandbox#action=query&format=json&list=extdistbranches&formatversion=2&edbexts=WikiEditor>

returns this sort of thing:

"REL1_39": 
"https://extdist.wmflabs.org/dist/extensions/WikiEditor-REL1_39-76d9ffd.tar.gz",
"REL1_40": 
"https://extdist.wmflabs.org/dist/extensions/WikiEditor-REL1_40-d330183.tar.gz",
"master": 
"https://extdist.wmflabs.org/dist/extensions/WikiEditor-master-17163cd.tar.gz",


On 2/10/23 20:47, Sebastian Berlin wrote:
> Is there a way to programmatically get a download link for an 
> extension if you have the extension name and version of MediaWiki? 
> E.g. for Wikispeech and MW 1.39 this would (currently) be 
> https://extdist.wmflabs.org/dist/extensions/Wikispeech-REL1_39-5dc08c9.tar.gz. 
> It's the hash(?) a the end that makes it tricky.
> *
> *
> *Sebastian Berlin*
> Utvecklare//Developer/
> Wikimedia Sverige (WMSE)
>
> E-post//E-Mail/: [email protected]
> Telefon//Phone/: (+46) 0707 - 92 03 84
>
> _______________________________________________
> MediaWiki-l mailing list [email protected]
> To unsubscribe send an email [email protected]
> https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/

_______________________________________________
MediaWiki-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/