Last modified: 2014-08-26 19:39:05 UTC
When requesting a token via action=tokens when not logged in I get the response { "warnings": { "tokens": { "*": "Action 'import' is not allowed for the current user" } }, "tokens": [ ] } To be consistent with the rest of the api, this should return a json object with an error key so that it is clear that this is an error.
I guess the issue here is that if you request multiple tokens, 1 edit and 1 import you don't want the whole request to fail if your not allowed to import as you still want the edit token.
What Addshore said. { "warnings": { "tokens": { "*": "Action 'delete' is not allowed for the current user" } }, "tokens": { "edittoken": "+\\" } }