Way to test API key permissions?

Way to test API key permissions?

in API Development

Posted by: Kioshi.6597

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.

Way to test API key permissions?

in API Development

Posted by: Antodias.4765

Antodias.4765

http://wiki.guildwars2.com/wiki/API:2/tokeninfo

This is probably what you are looking for

(edited by Antodias.4765)

Way to test API key permissions?

in API Development

Posted by: Patches.7584

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.