- Installatble with PHP 8.1+
- Update mediawiki/oauthclient to ^2.1
- Added
\Addwiki\Mediawiki\Api\Client\Auth\UserAndPassword::setAssertType()
to alter which assert= parameter is used in requests #175 - Fix being unable to set a logger other than Nulllogger in the Guzzle Client #156
\Addwiki\Mediawiki\Api\Client\Request\MethodTrait::setMethod()
now normalizes the method to uppercase #166
- Installable with 7.4+ (including PHP8)
- Typing added throughout
- PSR4 namespacing. Now in
Addwiki\Mediawiki\Api
RestApi
addedApiUser
replaced byUserAndPassword
andUserAndPasswordWithDomain
- OAuth Authentication added
SimpleRequest
now extendsFluentRequest
assert
API parameter is automatically added to requests based on the auth method selected
- Installable with 7.3+ (including PHP8)
- Installable with
guzzlehttp/guzzle
~6.3|~7.0
- Installable with
guzzlehttp/guzzle
~6.0|~7.0
- Require PHP 7.2+
- Initial release from new development monorepo
- All addwiki libraries now have aligned version numbers
- Token passed to action=logout api call, as now required by MediaWiki. PR #44.
- New MultipartRequest class added. PR #38.
- All guzzle configuration settings can now be overridden in
ClientFactory
. #27 - Requests that fail due to maxlag will be automatically retried. #28. Fixes T143193.
- Added
MediawikiApi::getApiUrl
. #24 - Debugging infomation now logged when login fails. #26
- UsageException messages now include the error code and result the API returned. #31
- Both formatversion=2 and old style API results supported #33
- Fix MediawikiApi::newFromPage() fails on non-XML HTML. #34
- Various CI improvements.
- Cast SimpleXMLElements attributes as string in
MediawikiApi::newFromPage()
- Added
MediawikiApiInterface
, now implemented byMediawikiApi
- Added
ApiRequester
, now implemented byMediawikiApi
- Added
AsyncApiRequester
, now implemented byMediawikiApi
- The constructor of
MediawikiApi
was made package public
- Retry throttled actions that return a failed-save code and anti-abuse message
- Added delay between retried requests
- Added and used
Guzzle/ClientFactory
- Added
MediawikiApi::newFromApiEndpoint
andMediawikiApi::newFromPage
- MediawikiApi constructor access marked as private (please use static factory methods)
- Added async methods to MediawikiApi
getRequestAsync
&postRequestAsync
- Requires "guzzlehttp/guzzle": "~6.0" ( From "guzzle/guzzle": "~5.2" )
- Requires "guzzlehttp/promises": "~1.0"
- Issue with README fixed
- Requests that encounter a connection exception are now retried
- Requests that result in non blocking mediawiki api error codes are now retried (ratelimited, readonly, internal_api_error_DBQueryError)
- MediawikiApi now implements PSR-3 LoggerAwareInterface
- MediawikiSession now implements PSR-3 LoggerAwareInterface
- MediawikiApi no longer raises PHP warnings, instead it logs warnings
- Added
FluentRequest
object - Requires "guzzlehttp/retry-subscriber": "~2.0"
- UsageExceptions can now contain the full api result array
- No longer uses addwiki/guzzle-mediawiki-client
- Now using "guzzlehttp/guzzle": "~5.0" ( From "guzzle/guzzle": "~3.2" )
- Added getHeaders method to Request interface
- ApiUser now accepts a domain
- Session objects now use action=query&meta=tokens to get tokens when possible. NOTE: Token names have changed between versions
- MediawikiApi getAction and postAction methods have been deprecated in favour of getRequest and postRequest
- If warnings are present in API results E_USER_WARNING errors are triggered
- The Request interface and SimpleRequest class have been added
- MediawikiApi now has a getRequest and postRequest method
- MediawikiApi now has a getVersion method
- Unsuccessful logins now throw a UsageException with extra details
- Fix issue where API tokens were not returned
- Initial release after split from mediawiki-api lib