Way to test API key permissions?
Kioshi.6597:
Is it possible to check the permissions enabled on a given key? (A quick way at least. I could of course manually check them). I would like to use this to check if the user set up their key correctly.
Antodias.4765:
http://wiki.guildwars2.com/wiki/API:2/tokeninfo
This is probably what you are looking for
Patches.7584:
http://wiki.guildwars2.com/wiki/API:2/tokeninfo
This is probably what you are looking for
This is more or less what I do. Pull the tokeninfo, and store the permissions in a list.
Compare against that and raise an exception if it’s missing.
Mind you the wiki is slightly outdated. It does return ALL the permissions as expected.