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
Action tokens should give it:
https://en.wikipedia.org/w/api.php?action=tokenstype=patrol
-Niklas
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
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.laxst...@gmail.com wrote:
Action tokens should give it:
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
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
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 yuvipa...@gmail.com wrote:
IIRC the token doesn't actually change for every edit.
--
Yuvi Panda T
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 benap...@gmail.com wrote:
aha so
* I first retrieve the token
* I use the same token for every patrol
OR
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 addshorew...@gmail.com wrote:
I think it is a case of,
* retrieve token
* patrol change
* patrol change
* patrol change
* patrol change
*
action=patrol has both a revid and a rcid parameter :)
On 29 November 2013 14:48, Petr Bena benap...@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 addshorew...@gmail.com