Jump to content

User:Itskoda/Sandbox/API:Assert

From mediawiki.org
MediaWiki version:
1.23

GET Request to check if the user is logged in or not, and if the account has the "bot" user right or not.


Examples

[edit]

GET Request

[edit]

Response

[edit]
{
    "batchcomplete": ""
}

GET Request

[edit]

Response

[edit]
{
    "batchcomplete": ""
}

Possible errors

[edit]
Code Info
assertuserfailed "assert=user" has been used, but user is not logged in
assertbotfailed "assert=bot" has been used, but logged in user is not a bot

Additional notes

[edit]

See also

[edit]
  • Add link to documentation of related modules