public static function fetch_zones() { // WC Logs API Key $apiKey = wlogs_key; // WCLogs API Url $WCLogsUrl = 'https://www.warcraftlogs.com:443/v1/zones?api_key=' . $apiKey; // qCurl Fetch return quickCurl::get($WCLogsUrl, ADV); }
public static function fetch_guild_members() { // BNet API Key $guild = guild_name; $apiKey = api_key; $region = region; // Fix - Server names with spaces $re = "/\\s/"; $subst = "-"; $fixed_server_name = preg_replace($re, $subst, guild_server, 1); // BNet API Url $bnetUrl = 'https://us.api.battle.net/wow/guild/' . $fixed_server_name . '/' . $guild . '?fields=members&local=' . $region . '&apikey=' . $apiKey; // qCurl Fetch return quickCurl::get($bnetUrl, ADV); }