Skip to content

Instantly share code, notes, and snippets.

@filbertkm
Last active January 21, 2016 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filbertkm/c1e14a3fbda62fd5db88 to your computer and use it in GitHub Desktop.
Save filbertkm/c1e14a3fbda62fd5db88 to your computer and use it in GitHub Desktop.
post login
* action=login
* lgname=Bot
* lgpassword=Password
array (
'login' =>
array (
'result' => 'NeedToken',
'token' => '#######',
'cookieprefix' => 'testwikidatawiki',
'sessionid' => '##########',
),
)
* action=login
* lgname=Bot
* lgpassword=Password
* lgtoken=######
(then should be result => 'Success' here and i have my edit token etc)
array (
'login' =>
array (
'result' => 'NotExists',
),
)
array (
'servedby' => 'mw1017',
'error' =>
array (
'code' => 'notoken',
'info' => 'The token parameter must be set',
'*' => 'See https://test.wikidata.org/w/api.php for API usage',
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment