API:Edit - Watch
From MediaWiki.org
| This page is part of the MediaWiki API documentation. |
| Languages: |
English |
| MediaWiki version: | 1.14 |
Contents |
[edit] Watching and unwatching pages
Pages can be watched (added to your watchlist) and unwatched (removed from your watchlist) with action=watch. Of course, you can only add and remove pages to/from your own watchlist.
[edit] Parameters
title: Page to (un)watchunwatch: If set, unwatch the page. If not set, watch the page.
[edit] Examples
| Watching Main Page |
api.php ? action=watch & title=Main_Page
<?xml version="1.0" encoding="utf-8"?> <api> <watch title="Main Page" watched="" /> </api>
| Unwatching Dog |
api.php ? action=watch & title=Dog & unwatch
<?xml version="1.0" encoding="utf-8"?> <api> <watch title="Dog" unwatched="" /> </api>
[edit] Possible errors
Only the usual stuff.

