New Features
- Added
requestHref() function - Make authenticated requests to arbitrary Blizzard API href URLs returned in API responses. Perfect for following links and making sequenced API calls.
- Added authentication debugging functions - New
getAccessToken() and getAuthConfig() functions to access current authentication state for debugging or external use.
Usage Examples
// Follow href links from API responses
const guildData = await blizzardAPI.requestHref("https://eu.api.blizzard.com/data/wow/guild/moonglade/carpe-cerevisi?namespace=profile-eu");
// Debug authentication state
const token = blizzardAPI.getAccessToken();
const authConfig = blizzardAPI.getAuthConfig();