Re: [Mediawiki-l] Getting an edit token for faux request

2011-06-18 Thread Adam Meyer
Makes sense. Just incase it will help anyone, I added it to http://www.mediawiki.org/wiki/API:Calling_internally On Jun 18, 2011, at 7:10 PM, Platonides wrote: > Adam Meyer wrote: >> Perfect. Thank you! >> I saw way too many bad examples that lead me astray. > > I think it may have changed r

Re: [Mediawiki-l] Getting an edit token for faux request

2011-06-18 Thread Platonides
Adam Meyer wrote: > Perfect. Thank you! > I saw way too many bad examples that lead me astray. I think it may have changed recently. ___ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Re: [Mediawiki-l] Getting an edit token for faux request

2011-06-18 Thread Adam Meyer
Perfect. Thank you! I saw way too many bad examples that lead me astray. On Jun 18, 2011, at 2:19 PM, Brion Vibber wrote: > On Sat, Jun 18, 2011 at 7:21 AM, Adam Meyer wrote: > >> I need an edit token for a faux request (fauxRequest) I am doing. I thought >> I could get a token like so: >> >

Re: [Mediawiki-l] Getting an edit token for faux request

2011-06-18 Thread Brion Vibber
On Sat, Jun 18, 2011 at 7:21 AM, Adam Meyer wrote: > I need an edit token for a faux request (fauxRequest) I am doing. I thought > I could get a token like so: > > global $wgRequest; > $token = $wgRequest->getSessionData( 'wsEditToken' ); > > But it just reports back "badtoken: Invalid token" > >

[Mediawiki-l] Getting an edit token for faux request

2011-06-18 Thread Adam Meyer
I need an edit token for a faux request (fauxRequest) I am doing. I thought I could get a token like so: global $wgRequest; $token = $wgRequest->getSessionData( 'wsEditToken' ); But it just reports back "badtoken: Invalid token" What is the proper way to ger an edit token for a faux request T