Way to test API key permissions?
http://wiki.guildwars2.com/wiki/API:2/tokeninfo
This is probably what you are looking for
(edited by Antodias.4765)
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.