Skip to content

0.3.8

Choose a tag to compare

@Pinta365 Pinta365 released this 10 Oct 19:46
· 5 commits to main since this release

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();