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
#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 @F7N for the steller cPanel Hosting
Follow me on Mastodon
View me on IRC @SlashNET

[url=https://7ob.pw/FreeVPS/?userid=19870][/url]
#3
Backend would probably be PHP. I plan on using AJAX to dynamically load content from the server, but logins will be handled backend




Users browsing this thread: 1 Guest(s)

Switch to mobile version

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


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo