Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit page #22

Open
DariaMo opened this issue Jun 5, 2019 · 0 comments
Open

edit page #22

DariaMo opened this issue Jun 5, 2019 · 0 comments

Comments

@DariaMo
Copy link

DariaMo commented Jun 5, 2019

When you try to edit a page using the MBbot library, you encounter an editing error. Using your code:

const MWBot = require('mwbot');
let bot = new MWBot();
bot.loginGetEditToken({
apiUrl: "???",
username: my.username,
password: my.password
}).then(() => {
return bot.edit('Test Page', '=Some more Wikitext=', 'Test Upload');
}).then((response) => {
// Success
}).catch((err) => {
// Error
});

What to specify in parameters: 'content' and 'summary' and 'customRequestOptions'?
There are examples?
What to use apiUrl?

@DariaMo DariaMo changed the title create page create edit Jun 5, 2019
@DariaMo DariaMo changed the title create edit edit page Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant