Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-30 Thread hoo
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Niklas Laxström
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Petr Bena
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:

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Petr Bena
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Yuvi Panda
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Petr Bena
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread addshorewiki
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

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread Petr Bena
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 *

Re: [Wikitech-l] How can I retrieve patrol token for specific revision

2013-11-29 Thread addshorewiki
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