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
Green text = speaking officially

Regular text = speaking as just another member
#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]
Thanks to FREEVPS.us  for VPS 14
A huge shoutout to @NoUptime for the steller cPanel Hosting
View me on IRC @SlashNET
You can also Buy me coffee

#3
Backend would probably be PHP. I plan on using AJAX to dynamically load content from the server, but logins will be handled backend
Green text = speaking officially

Regular text = speaking as just another member




Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - HostMada - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo