Hi,
This manual https://www.mediawiki.org/wiki/API:Patrol say that I can retrieve patrol token from recent changes. But if I am not using recent changes to retrieve a list of edits and I want to mark certain edit as patrolled, how would I retrieve a patrol token for such a page?
Action tokens should give it: https://en.wikipedia.org/w/api.php?action=tokens&type=patrol -Niklas
Huh...
how am I supposed to use it? Isn't the patrol token different for every edit? And how often should I retrieve this token? Does it change after every use?
On Fri, Nov 29, 2013 at 11:19 AM, Niklas Laxström niklas.laxstrom@gmail.com wrote:
Action tokens should give it: https://en.wikipedia.org/w/api.php?action=tokens&type=patrol -Niklas _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I want to do this:
Using: https://www.mediawiki.org/wiki/Patrolling
* Huggle retrieves edit information using irc feed * User decides it is a good edit and flag it as that in huggle * Huggle should automatically mark edit as patrolled now, but questions is HOW
It doesn't have the patrol token that it would normally retrieve from recent changes api, so how am I supposed to retrieve it so that I can execute
action=patrol&rcid=242005359&token=123ABC
On Fri, Nov 29, 2013 at 2:08 PM, Petr Bena benapetr@gmail.com wrote:
Huh...
how am I supposed to use it? Isn't the patrol token different for every edit? And how often should I retrieve this token? Does it change after every use?
On Fri, Nov 29, 2013 at 11:19 AM, Niklas Laxström niklas.laxstrom@gmail.com wrote:
Action tokens should give it: https://en.wikipedia.org/w/api.php?action=tokens&type=patrol -Niklas _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
IIRC the token doesn't actually change for every edit.
aha so
* I first retrieve the token * I use the same token for every patrol
OR
* retrieve token * patrol change * retrieve token * patrol change ...
On Fri, Nov 29, 2013 at 2:14 PM, Yuvi Panda yuvipanda@gmail.com wrote:
IIRC the token doesn't actually change for every edit.
Yuvi Panda T http://yuvi.in/blog
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I think it is a case of,
* retrieve token * patrol change * patrol change * patrol change * patrol change * get token error * retrieve new token
On 29 November 2013 14:20, Petr Bena benapetr@gmail.com wrote:
aha so
- I first retrieve the token
- I use the same token for every patrol
OR
- retrieve token
- patrol change
- retrieve token
- patrol change
...
On Fri, Nov 29, 2013 at 2:14 PM, Yuvi Panda yuvipanda@gmail.com wrote:
IIRC the token doesn't actually change for every edit.
Yuvi Panda T http://yuvi.in/blog
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I am wondering how to convert edit ID (RevID) to RCID? Because that's the other part of patrol request.
On Fri, Nov 29, 2013 at 2:22 PM, addshorewiki addshorewiki@gmail.com wrote:
I think it is a case of,
- retrieve token
- patrol change
- patrol change
- patrol change
- patrol change
- get token error
- retrieve new token
On 29 November 2013 14:20, Petr Bena benapetr@gmail.com wrote:
aha so
- I first retrieve the token
- I use the same token for every patrol
OR
- retrieve token
- patrol change
- retrieve token
- patrol change
...
On Fri, Nov 29, 2013 at 2:14 PM, Yuvi Panda yuvipanda@gmail.com wrote:
IIRC the token doesn't actually change for every edit.
Yuvi Panda T http://yuvi.in/blog
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
action=patrol has both a revid and a rcid parameter :)
On 29 November 2013 14:48, Petr Bena benapetr@gmail.com wrote:
I am wondering how to convert edit ID (RevID) to RCID? Because that's the other part of patrol request.
On Fri, Nov 29, 2013 at 2:22 PM, addshorewiki addshorewiki@gmail.com wrote:
I think it is a case of,
- retrieve token
- patrol change
- patrol change
- patrol change
- patrol change
- get token error
- retrieve new token
On 29 November 2013 14:20, Petr Bena benapetr@gmail.com wrote:
aha so
- I first retrieve the token
- I use the same token for every patrol
OR
- retrieve token
- patrol change
- retrieve token
- patrol change
...
On Fri, Nov 29, 2013 at 2:14 PM, Yuvi Panda yuvipanda@gmail.com
wrote:
IIRC the token doesn't actually change for every edit.
Yuvi Panda T http://yuvi.in/blog
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Indeed, I've patched the patrol API to support both. Also the patrol token will never change during a session (if it would, other things, like MediaWiki (core) JavaScript would almost certainly break).
Cheers,
Marius
On Fri, 2013-11-29 at 17:12 +0100, addshorewiki wrote:
action=patrol has both a revid and a rcid parameter :)
On 29 November 2013 14:48, Petr Bena benapetr@gmail.com wrote:
I am wondering how to convert edit ID (RevID) to RCID? Because that's the other part of patrol request.
On Fri, Nov 29, 2013 at 2:22 PM, addshorewiki addshorewiki@gmail.com wrote:
I think it is a case of,
- retrieve token
- patrol change
- patrol change
- patrol change
- patrol change
- get token error
- retrieve new token
On 29 November 2013 14:20, Petr Bena benapetr@gmail.com wrote:
aha so
- I first retrieve the token
- I use the same token for every patrol
OR
- retrieve token
- patrol change
- retrieve token
- patrol change
...
On Fri, Nov 29, 2013 at 2:14 PM, Yuvi Panda yuvipanda@gmail.com
wrote:
IIRC the token doesn't actually change for every edit.
Yuvi Panda T http://yuvi.in/blog
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org