Skip to content

Commit

Permalink
Update USAGE.md; add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Xymph committed Aug 25, 2021
1 parent 51f8a13 commit a52fc48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Since v0.10.0 this project adheres to [Semantic Versioning](http://semver.org/)
#### Added

* New methods `WikiFile::revert()` and `Wikimate::filerevert()` ([#123])
* New method `Wikimate::logout()` ([#124])

#### Changed

Expand Down Expand Up @@ -151,3 +152,4 @@ Since v0.10.0 this project adheres to [Semantic Versioning](http://semver.org/)
[#121]: https://github.com/hamstar/Wikimate/pull/121
[#122]: https://github.com/hamstar/Wikimate/pull/122
[#123]: https://github.com/hamstar/Wikimate/pull/123
[#124]: https://github.com/hamstar/Wikimate/pull/124
3 changes: 2 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Both methods return an array of the MediaWiki API result.
API requests are made over HTTP with a user agent string to identify
the client to the server. By default the user agent is formatted as:

`Wikimate <VERSION> (https://github.com/hamstar/Wikimate)`
`Wikimate/<VERSION> (https://github.com/hamstar/Wikimate)`

The string can be retrieved and customized via:

Expand All @@ -364,6 +364,7 @@ print_r($page->getError());

For MediaWiki API errors, the array contains the 'code' and 'info' key/value pairs [defined by the API](https://www.mediawiki.org/wiki/Special:MyLanguage/API:Errors_and_warnings#Errors). For other errors, the following key/value pairs are returned:
* 'login' for Wikimate authentication problems
* 'auth' for Wikimate authentication problems
* 'token' for Wikimate token problems
* 'page' for WikiPage errors
* 'file' for WikiFile errors

0 comments on commit a52fc48

Please sign in to comment.