Skip to content

Commit b65cad3

Browse files
committed
Update USAGE for changed token handling
1 parent a1a44fa commit b65cad3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

USAGE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ print_r($page->getError());
300300

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

@@ -309,7 +310,6 @@ You can use the edit and query commands in Wikimate:
309310
```php
310311
$data = array(
311312
'prop' => 'info|revisions',
312-
'intoken' => 'edit',
313313
'titles' => 'this|that|other'
314314
);
315315

@@ -318,7 +318,6 @@ $array_result = $wiki->query($data);
318318

319319
$data = array(
320320
'title' => 'this',
321-
'token' => '+\\', // this is urlencoded automatically
322321
'etc' => 'stuff'
323322
);
324323

0 commit comments

Comments
 (0)