You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code 401 means "Unauthorized". I am not authorized to login to tw.battle.net.
Changing it to login to your own account's region and THEN querying the other regions is the correct way to use the API. And yes, to query data from another region you do need to provide a region to the wowapi.get_spell() etc APIs.
So the oauth login must be your region. The query must be the target region.
Furthermore, their documentation pages say that the data is segmented into region locks. Non-Chinese accounts can query all regions except China. Chinese accounts can only query Chinese regions (zh_CN):
Hi, I've noticed a small bug.
api.py: _get_client_credentials(self, region):
As you can see, I intentionally commented out the "region.battle.net" code and replaced it with "eu.battle.net". Why?
Because:
Code 401 means "Unauthorized". I am not authorized to login to tw.battle.net.
Changing it to login to your own account's region and THEN querying the other regions is the correct way to use the API. And yes, to query data from another region you do need to provide a region to the wowapi.get_spell() etc APIs.
So the oauth login must be your region. The query must be the target region.
Furthermore, their documentation pages say that the data is segmented into region locks. Non-Chinese accounts can query all regions except China. Chinese accounts can only query Chinese regions (zh_CN):
The text was updated successfully, but these errors were encountered: