[Mediawiki-l] edittokens

Yuri Astrakhan yuriastrakhan at gmail.com
Mon Aug 20 21:17:53 UTC 2007


Tokens are up and running:
http://en.wikipedia.org/w/api.php?action=query&prop=info&titles=Main%20Page&intoken=edit

(at present the edit token will be given regardless of the user's rights).

See http://en.wikipedia.org/w/api.php  for more info.

On 8/19/07, Jim Higson <jh at 333.org> wrote:
> Hi all,
>
> I've been away from MediaWiki for a while. The last time I worked on my
> AJAX-ified wiki tools, you didn't really need any special tokens to edit an
> article.
>
> Well, I have more time now and my old tools no longer upload properly :)
> However, it seems there is now a nice, neat API, which should make things a
> lot easier.
>
> It seems I need to get an edit token. I've searched around for this. This
> page tells me I need to do an intokens=edit query call:
>
> http://www.mediawiki.org/wiki/API:Changing_wiki_content
>
> But this one says this isn't implemented yet:
>
> http://www.mediawiki.org/wiki/API
>
> In any case, I can't get intokens to work, so it probably isn't implemented.
>
> Is the typical method at the moment to just query the normal web interface
> and screen-scrape for tokens?
>
> Regards,
> Jim
>
>
>
>
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list