Question regarding API-based login
#1
I'm designing a new site for one of my Guild Wars 2 guilds. Guild wars 2 provides a robust API for external applications to query information about the game. (You can read more about the API here)

The site will check the API key provided for membership in the guild somehow. There are two ways I can think of to determine membership:


  1. Check each key's guilds list for the GUID of the guild this site is for
  2. Check the account name associated with the API key and compare it with the guild roster (automatically updated from the guild master's key
The roster one way or another will be checked every 5-10 minutes. Would it be more efficient to check each key for changes every check period, or update the roster every period and just compare with the cached account names? Pros and cons of each approach?

Thanks.
Ignis
Giveaway Manager, FreeVPS Directory and Discussion

Also a big fan of Anime, see my poor taste here.
Reply
#2
you need this in PHP or HTML? PHP Is easier...

https://github.com/jamesmcfadden/Php-Gw2-Api/

Packagist: https://packagist.org/packages/gw2treasures/gw2api

[Image: img.php?userid=19870&txt=1]

A huge shoutout to GalaxyHostPlus for the stellar OpenVZ VPS
Follow me on Mastodon
View me on IRC @SlashNET

Reply
#3
Backend would probably be PHP. I plan on using AJAX to dynamically load content from the server, but logins will be handled backend
Giveaway Manager, FreeVPS Directory and Discussion

Also a big fan of Anime, see my poor taste here.
Reply




Users browsing this thread: 1 Guest(s)