MediaWiki-API

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for MediaWiki-API

0.52    2020-11-25
        Fix version number in POD.

0.51    2020-11-22
        Minor packaging changes.

0.50    2020-11-22
        Rework and simplify the token code using the newer MW 1.24+ api.php?action=query&meta=tokens call.
        Use a token by default for the login function (by just calling edit with action=login).
        Updated Wikipedia URLs in examples to https://
        Remove "Purge" from get_actions as it requires a POST method.
        Updated TestWiki / ExoticA URLs to https://
        Thanks to Nataraj for the Wikipedia URL changes and Sebastian for the Purge info.

0.41    2015-11-13
        When using the max_lag configuration, if max_lag_retries was reached - the reported number tries were incorrect.
        Fixed up the api->list function not continuing due to lack of rawcontinue parameter that is needed after MediaWiki 1.26.
        Thanks to Derbeth for the bug reports.

0.40    2014-09-13
        Apologies for the lack of updates and the speed to implement some fixes but I have been busy on other projects.
        Edit token code has been reworked somewhat to make it simpler, and a bugfix applied for an issue with downloading
        images over https using the buildin Download() function.

0.39    2012-05-20
        Added automatic support for handling tokens in the MediaWiki::API->Edit function for (Un)watch, Send e-mail
        and Patrol changes. (Un)watch already worked but wasn't documented.

0.38    2012-05-19
        Allow the actions the API supports with an http GET request to be configurable.
        MediaWiki::API->{config}->{get_actions} defaults to { 'query' => 1, 'logout' => 1, purge' => 1, 'paraminfo' => 1 }
        but can be added to/ammended as needed for any extensions that add additional functions to the API that support
        a GET request.
        
        Make the version of Test::More required to be 0.98 to avoid an issue with older versions missing functionality
        (eg. on centos 5.x).

0.37    2011-08-10
        The MediaWiki::API->Edit call was not getting a token correctly for an import action. Thanks to Mike Lifeguard
        for the report.

0.36    2011-08-07
        Since 1.16 MediaWiki now supports uploading files via the API, we no longer need to post directly to
        Special:Upload. Although now the MediaWiki::API->Upload function will use the api to upload if using a
        recent mediawiki, it has also been deprecated, as uploads can be done directly via the MediaWiki::API->API
        call, or if you prefer MediaWiki::API->Edit (where it will automatically get a token for you). Thanks to
        Jeremy Muhlich for the original patch. Some details about uploading files via the API / Edit calls can be
        found in the API section of the pod documentation. 
        
        There are now some tests included with the module. They run a few api functions against a test wiki -
        http://testwiki.exotica.org.uk to make sure everything is working correctly. Feel free to use this wiki for
        testing the module with your own code also. It is wiped/cleaned regularly.

0.35    2010-08-29
        The module now is a little bit more intelligent about utf-8 strings. If you have the "use utf8" pragma set in
        your code and pass utf-8 strings in the query, you no longer need to set the skip_encoding config option. The
        option is only needed if you are passing utf-8 strings but the utf-8 flag is not set on the strings. Note that
        this may not work correctly if the version of URI module is less than 1.36, and in that case you may well need
        to specify skip_encoding still (The module does contains a workaround however for older URI versions). Thanks
        to Nikolay Shaplov for patches and testing relating to this new functionality.

0.34    2010-07-25
        if skip_encoding encoding was used in conjuctions with use_http_get the querystring was not correctly encoded
        (parameters were not treated as utf8). Thanks to Nikolay Shaplov for reporting the problem.

0.33    2010-06-09
        Download function checked for image description, instead of checking for imageinfo. This meant that some
        images were not downloaded. Thanks to "ke" for reporting this problem

0.32    2010-06-05
        Config options passed when creating a new instance of the mediawiki api object were overwritten with default
        values. Now fixed. Thanks to Brian for reporting this problem. Note the version number has been bumped twice
        since I forgot to update this changes file for 0.31. oops.

0.30    2010-04-08
        MediaWiki >= 1.15.3 and MediaWiki >= 1.16.0beta2 now require a login token to be sent when logging in. Please
        see https://bugzilla.wikimedia.org/show_bug.cgi?id=23076 for more details. The MediaWiki::API login method is
        now adjusted to handle this automatically. Thanks to Brent Garber for the heads up and the patch which I used
        with some minor modifications.

0.29    2010-01-10



( run in 2.866 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )