OAuth - Little help

OAuth - Little help

in API Development

Posted by: Valento.9852

Valento.9852

Hey guys, so the guild APIs are starting to show and I wanted to check some guild stuff but I don’t quite understand how this OAuth thing works. Does anyone have a quick dummy-like tutorial, or some small example on how I can retrieve data about my guild? The guild ranks for example.

Sorry if this has been asked before.

Thanks!

Attempts at ele specs:
Shaman
Conjurer

OAuth - Little help

in API Development

Posted by: darthmaim.6017

darthmaim.6017

First of all, the API doesn’t use OAuth, but API keys. You can generate API keys on your account page.

Then you can access all authenticated endpoints with that, for example the some basic account info, by requesting “v2/account?access_token=YOUR-API-KEY-HERE” (example with my API key)

Same thing for guild data, but currently its limited to guild leaders. You can only access guild information of guilds, where the owner of the API key is the guild leader.

As an example, I can get all members of my test guild, but I can’t get the members of the ArenaNet guild.

So all you really need is the API key of the guild leader, and you can start making requests to the API with it

(edited by darthmaim.6017)

OAuth - Little help

in API Development

Posted by: Valento.9852

Valento.9852

First of all, the API doesn’t use OAuth, but API keys. You can generate API keys on your account page.

Then you can access all authenticated endpoints with that, for example the some basic account info, by requesting “v2/account?access_token=YOUR-API-KEY-HERE” (example with my API key)

Same thing for guild data, but currently its limited to guild leaders. You can only access guild information of guilds, where the owner of the API key is the guild leader.

As an example, I can get all members of my test guild, but I can’t get the members of the ArenaNet guild.

So all you really need is the API key of the guild leader, and you can start making requests to the API with it

Sorry for the late reply, this was VERY useful! I managed to dump rank data. Thank you!

Attempts at ele specs:
Shaman
Conjurer