User credentials for authentication.
When calling Mwbot.constructor, one of the following credential types must be provided under the credentials key in the MwbotInitOptions object.
credentials
{ oAuth2AccessToken: 'Your OAuth 2.0 access token'} Copy
{ oAuth2AccessToken: 'Your OAuth 2.0 access token'}
{ consumerToken: 'Your OAuth 1.0a consumer token', consumerSecret: 'Your OAuth 1.0a consumer secret', accessToken: 'Your OAuth 1.0a access token', accessSecret: 'Your OAuth 1.0a access secret'} Copy
{ consumerToken: 'Your OAuth 1.0a consumer token', consumerSecret: 'Your OAuth 1.0a consumer secret', accessToken: 'Your OAuth 1.0a access token', accessSecret: 'Your OAuth 1.0a access secret'}
{ username: 'Your bot username', password: 'Your bot password'} Copy
{ username: 'Your bot username', password: 'Your bot password'}
{ anonymous: true} Copy
{ anonymous: true}
NOTE: Anonymous users will be limited to non-write requests only.
User credentials for authentication.
When calling Mwbot.constructor, one of the following credential types must be provided under the
credentials
key in the MwbotInitOptions object.OAuth 2.0 (https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers#OAuth_2)
OAuth 1.0a (https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers#OAuth_1)
BotPassword (https://www.mediawiki.org/wiki/Manual:Bot_passwords)
Anonymous Access
NOTE: Anonymous users will be limited to non-write requests only.