Configuration¶
Step 1: Create a Battle.net API client¶
- Go to the Battle.net Developer Portal.
- Log in with your Battle.net account and agree to the API Terms of Use.
- Navigate to API Access > Create Client.
- Fill in the client details:
- Client Name: a name for your application.
- Redirect URIs: if using Battle.net Login, add your site's OpenID Connect redirect URI:
https://example.com/openid-connect/battlenet - Service URL: your site's homepage (optional).
- Save the Client ID and Client Secret. The secret is only shown once.
Step 2: Store the client secret securely¶
The client secret is stored via the Key module, which supports multiple storage backends.
- Go to Administration > Configuration > System > Keys (
/admin/config/system/keys). - Click Add key.
- Configure:
- Key name:
Battle.net Client Secret - Key type: Authentication
- Key provider: choose based on your environment:
- Configuration — development only (stored in database).
- Environment variable — recommended for production.
- File — reads from a file outside the web root.
- Key name:
Production security
For production sites, always use the Environment variable or File provider. Never store API secrets in exportable configuration on a production site.
Step 3: Configure the module¶
- Go to Administration > Configuration > Web services > World of Warcraft (
/admin/config/services/wow). - Enter your Client ID.
- Select the Client Secret key you created in Step 2.
- Choose your Default region (US, EU, KR, or TW).
- Enable Cache icons (recommended — Blizzard's Terms of Use require caching media assets locally).
- Click Save configuration.
Step 4: Verify the connection¶
A successful response confirms your API credentials are working and data can be synced.
Step 5: Sync your first data¶
Check the Dashboard at /admin/reports/wow to see sync status across all enabled submodules.