On Tue, May 1, 2018 at 3:38 PM, tom schulze <tom.schulze@posteo.de> wrote:
I am trying to receive an edit token for the MediaWiki 1.19 API,

1.19 is really old. If this is your own wiki, you really should upgrade. If it's someone else's, you should encourage them to upgrade.
 
however all I get is an empty response.

I created a gist with my python code.

You're missing parameters in params_edit_token. Try adding 'titles' with at least one title (doesn't have to exist) and 'intoken' with value 'edit'.


--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation