Use Authorization Code without user approval

I’m new to development with the Blizzard API, but I can successfully retrieve from the API using a token from client credentials without any problem.

However, I’m struggling with the /profile/user/wow/collections/mounts API, as this requires an access token acquired via Authorization Code.

Since I’m in the very early stages of my web application, I’m simply using Python to retrieve data from the API right now. It’s just a py file - no browser, no GUI, no clicking.

Am I correct in my assumption (from research) that I cannot use Python to generate an Authorization Code since this requires a user interaction in a browser?

What’s throwing me off is that I found someone else’s web application that hits the mounts API (/profile/user/wow/collections/mounts) without any interaction from the user! It’s the Tesla Mount Planner at http :// telsa-productions .co .uk

The site says, “It will take into account any mounts you already own,” but when I use his app, I’m not redirected to any sort of authorization page. Is he not using the /profile/user/wow/collections/mounts API? How else is he getting mount data? Is he somehow doing it via a client credentials API? If so, which one?

The ultimate goal with my web app is for a user to select their realm and character name (just like Tesla Mount Planner), click submit, and the server performs a query to determine what mounts the character has, and then it displays various information depending on what mounts they have.

Nope. He’s using the Character Collections API. Yep. GET /profile/wow/character/{realmSlug}/{characterName}/collections/mounts

1 Like