If the in the general siteinfo response (e.g. https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo) 'uploadsenabled' is an empty string, does this mean uploads are enabled?
Yes, in JSON version 1 booleans are usually omitted if false, empty strings if true. For a cleaner response, try JSON version 2 https://www.mediawiki.org/wiki/API:JSON_version_2: for example, https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format... returns "uploadsenabled": true. And by the way, the mediawiki-api https://lists.wikimedia.org/mailman/listinfo/mediawiki-api list may be more appropriate for such questions :-)
Il 31/12/2015 00:17, Alex S ha scritto:
If the in the general siteinfo response (e.g. https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo) 'uploadsenabled' is an empty string, does this mean uploads are enabled?
pywikibot mailing list pywikibot@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot