API Discussion

Jun 26 Bug: Character professions missing icon Hi folks! This is a bug report. When asking the API to get Character Professions, some professions returns an icon and others not. Ex: https://eu.api.blizzard.com/wow/character/dun-modr/Khuruk?fields=professions&locale=es_ES&access_token=****Sabinico1 Jun 26
Jun 26 Hearthstone API - Use it for a hoverable Deck Lists? Hey there. My name is neon31 and I am running a Hearthstone Site named https://hearthstone-decks.net I saw quite a few site using https://hearthstonejson.com for making a hoverable decklists and I wanted to know if it's possible with the offical one just released some days ago. I had quite a few people trying to make something with it, but we aren't able too. If someone knows how to make it, either with the offical one or the one by hearthstonejson.com it would be awesome. Thanks, neon!neon312 Jun 26
Jun 24 Bnet chat / presence API ? (chat bots like fb ones) Any plans on having chat services API (not just for classic games) ? (ie you can msg a service and it answers useful information, likewise in game addons could talk to a service using BNSendGameData() etc)Moorea1 Jun 24
Jun 22 Spirit Bomb Talent Bugged Description I've got a program that takes in a Server and Character Name as input, and outputs that particular character's currently active talents that I've been maintaining/updating throughout expansions and the API's migration. Typically a talent's description is listed as follows (in this case, Abyssal Strike): "description":"Infernal Strike's range is increased by 10 yards, and its cooldown is reduced by 8 sec." However, Vengeance Demon Hunters' Spirit Bomb's description is completely blank: "description":"" Not sure if there are other talents with this issue, but every other class/talents I've checked so far seem to be fine. Is there any chance for this to get fixed? Or am I just SoL for that particular talent?droodicus0 Jun 22
Jun 20 504 fetching wow api Hello guys, i'm trying to fetch this URL "https://eu.api.blizzard.com/wow/item/18803?locale=fr_FR&access_token={TOKEN}" but te server respond with 504 gateway timeout, but if i copy/past the url into the browser, i'm able to get correct data. I'm using react width axios, any ideas ?Nimpo0 Jun 20
Jun 19 SC2 - Player achievements Hi everyone, I was wondering if there is any endpoint that gets a player’s achievements that might not be documented. I have gone through the docs and it seems that sc2 does not have that. As a workaround, does blizzard allow retrieval of public information from their website in the format of web scrapping? Thank you.Poeticedda1 Jun 19
Jun 18 What does the [x] mean in the Hearthstone card text? I couldn't figure out the pattern on why some cards have an [x] in the beginning of their card text. For example Kirin Tor Mage has card text of [x]<b>Battlecry:</b> The next <b>Secret</b>\\nyou play this turn costs (0).Pyrolistical6 Jun 18
Jun 18 [Request] Expose character ID Context: WoW Would is be possible for all API calls which return a reference to a character to include in that character data the characters ID as it stands in the Blizzard systems? This would allow us some kind of unique identifier to identify characters by. We obv. already have our unique ID's in our databases, but when retrieving characters from the API the best thing we have to go on is name-realm-locale combinations to match a character from the API with a character in our database. This is fine for the most part. However, it gets messy when a character gets a name change or realm transfers. If we suspect a character has undergone one of these processes we can compare achievement points and determine who the character is now, however that's pretty messy and requires the user to let us know that they changed something with their character. If we had the character ID, we could just compare the character ID to the say `blizz_id` in our table, then blindly update the characters details when we retrieve the character from the API. While I understand that when we query the API for a specific character we have to provide the name-realm-local combination, however, at least in my uses I am normally requesting all of a accounts characters, rather than requesting a specific character from the API. If we have the ID we could say do a query for wow/character/{id} rather than wow/character/{realm}/{charactername}. If adding additional routes is out of the scope of possibility, it would really just be awesome to have the ID exposed when retrieving a character via pre-existing routes. As always, Thanks for your time and consideration.spudnic07211 Jun 18
Jun 17 [WoW] EU AH API Down Looks like the AH API has been down for the entire EU region for the last ~28 hours. https://does.theapi.work/ https://tradeskillmaster.com/wow-apiSapu1 Jun 17
Jun 16 [WoW] Progression sometimes return 0 Bosskills Hi, When using var apiID = "ID" var apiSecret= "SECRET" var oAuthcResponse = UrlFetchApp.fetch("https://us.battle.net/oauth/token?response_type=code&grant_type=client_credentials&client_id="+apiID+"&client_secret="+apiSecret) var oAuth = JSON.parse(oAuthcResponse.getContentText()) var oAuthKey = oAuth.access_token var toonJSON = UrlFetchApp.fetch("https://eu.api.blizzard.com/wow/character/"+toonRealm+"/"+toonName+"?fields=progression&access_token="+oAuthKey) in my google spreadsheet, it sometimes returns a JSON with 0 bosskills. How it should look like: https://pastebin.com/mCq7gybn How it sometimes looks like: https://pastebin.com/VvprHGKM Test Spreadsheet: https://docs.google.com/spreadsheets/d/1gQOIRXAEEKjZAwNLvjq8t1ihVIluwjCojYyhW2jsHS0/edit#gid=0 The bug happens with any toon, doenst have to be mine.Chill0 Jun 16
Jun 14 Can't use the D3 Profile API When I go to https://develop.battle.net/documentation/api-reference/diablo-3-community-api -- I go to the `getApiAccount` method and, using my client id and secret, send a request to my account, it builds this URL: https://us.api.blizzard.com/d3/profile/<my-battletag>/?locale=en_US&access_token=<some-token> And I get this response: 401 Unauthorized This does not happen for other endpoints, but the whole D3 Profile API throws 401 to me. Needless to say, this happens in my application too. Do I need some kind of especial permissions to use that part of the API or am I missing something? Thanks!NightRaven4 Jun 14
Jun 12 SC2 eSports Schedule API Hello, Im looking for some API that would help me fetch the data for past and upcoming WCS / GSL tournaments. For all other blizzard games, I was able to find a call which returned those data on their respective sites, but there is no such call on https://wcs.starcraft2.com/en-us/schedule/ page. Is there some nice way to get that data (I would like to avoid parsing the html page)? Thank youPrdik0 Jun 12
Jun 12 Can I access calendar data? Hi, I'd like to be able to progamatically get access to the guild calendar events, and wondered if this was possible or not? Would the new OAUTH allow that? I want to see who is signed up for guild raids.Whisperer90 Jun 12
Jun 11 403 on thumbnail url Im loading a list of characters of which ive filtered out characters lower than level 20 and lastModified is 0. All character thumbnails load correctly except one which i get a 403 error on. Here is the data i get on that character: { "name": "Kezzno", "realm": "Outland", "battlegroup": "Misery", "class": 10, "race": 1, "gender": 1, "level": 21, "achievementPoints": 0, "thumbnail": "outland/199/166424519-avatar.jpg", "lastModified": 1534025670000 }, The url im trying to load is: https://render-eu.worldofwarcraft.com/character/outland/199/166424519-avatar.jpg The character has not been played for a while so im thinking its that. It loads the default dark thumbnail on the wow page. Is there a specified time of inactivity where a dark default thumbnail should be show? Cannot find this information anywhere.Kezzno0 Jun 11
Jun 11 WoW Game Data API Update - Guild, Pets, Mounts & More Greetings everyone, We have some exciting news to share! Earlier this week we released some new data to the Game Data APIs for World of Warcraft. This release includes new data and endpoints related to PvP Seasons, character PvP rankings, pets, mounts, creatures, and guilds. Please refer to the below list for a complete list of endpoint additions: Game Data API: /data/wow/pvp-season/index /data/wow/pvp-season/{id} /data/wow/pvp-season/{id}/pvp-leaderboard/index /data/wow/pvp-season/{id}/pvp-leaderboard/{bracketType} /data/wow/pvp-season/{id}/pvp-reward/index /data/wow/pvp-tier/index /data/wow/pvp-tier/{id} /data/wow/media/pvp-tier/{id} /data/wow/achievement/index /data/wow/achievement/{id} /data/wow/media/achievement/{id} /data/wow/achievement-category/index /data/wow/achievement-category/{id} /data/wow/pet/index /data/wow/pet/{id} /data/wow/mount/index /data/wow/mount/{id} /data/wow/creature/{id} /data/wow/media/creature-display/{id} /data/wow/creature-type/index /data/wow/creature-type/{id} /data/wow/creature-family/index /data/wow/creature-family/{id} /data/wow/media/creature-family/{id} /data/wow/guild/{realmSlug}/{guildName} /data/wow/guild/{realmSlug}/{guildName}/roster /data/wow/guild/{realmSlug}/{guildName}/achievements /data/wow/guild-crest/index /data/wow/media/guild-crest/emblem/{id} /data/wow/media/guild-crest/border/{id} Profile API: /profile/wow/character/{realmSlug}/{characterName}/pvp-summary /profile/wow/character/{realmSlug}/{characterName}/pvp-bracket/{bracketType} Additional notes: With the addition of the above endpoints, we advocate that you transition your applications to the Game Data API endpoints where possible, as the WoW Game Data API is considered to be more stable versus the WoW Community API at this time. Some guilds may be unavailable until they experience in-game activity. Some character profile documents will be unavailable until the next time the character logs out of the game. These documents include Character PvP Bracket Statistics, and Character PvP Summary. Data relating to PvP seasons prior to the current season (27) is currently unavailable and requests for such data will result in a 403 Forbidden error. For more detailed information about the new API methods, visit the API Reference pages for the World of Warcraft Game Data APIs and the World of Warcraft Profile APIs. Please feel free to post any feedback, comments, or questions here. Cheers!Maguthul13 Jun 11
Jun 6 WoW Item API - 500 Downstream Error I'm getting quite a few 500 Downstream errors when querying the Item API. Three quick examples: 129840 129847 129872 They all seem to be timewarped/timewalking items.RIDDICK2 Jun 6
Jun 1 Oauth request Hi, trying to connect to new API, stuck on the oauth request. I'd like to make a HTTP request in my node.js app var wowtoken = { url: "cant write this in post?", headers: {"client_id": config.wow_clientid, "client_secret": config.wow_secret}, data: {"grant_type": "client_credentials"} }; request.post(wowtoken, function(err, response, body){ if(err) {return console.log("oauth error");} else { //console.log things ... This does not work and returns an unauthorized error: Body = {"error":"unauthorized","error_description":"An Authentication object was not found in the SecurityContext"} However posting a CURL works no worries curl -u xxxxxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyyyyyyy -d grant_type=client_credentials cantwritethisURLinpost] Code also works if I don't user "headers" and "data" in my wowtoken variable and instead just use a combined URL var wowtoken = { url: `cantwritethisURLinpost?client_id=${config.wow_clientid}&client_secret=${config.wow_secret}&grant_type=client_credentials` }; Could someone kindly explain to a newbie how to correctly write this CURL as a http post request using headers?Todgins1 Jun 1
Jun 1 Blizzard Login for Invision Power Board 4 (OAUTH Configuration) Working with Invision Power Boards 4.4.3 and would like to enable OAUTH Login Support. I've generated a key, mainly I'm needing to know the following things in the request. https://i.imgur.com/O8GK2MD.png I'd really appreciate some help in getting this working if anyone has some spare time.Maelstrom0 Jun 1
May 31 Green TD on new WC3 I am developer of Classic Green TD custom map on wc3. I wont to get early access of the wc3 SDK for developing new version of map Green TD. I am also the developer Green TD Reborn on the Steam SDK platform with about 1 million subscribers. I would like to recreate the updated Green TD on a new engine, because in wc3 she was very popular. How i can get Beta access for developers wc3?Beedash0 May 31
May 29 Starcraft2 endpoint find the player you're currently playing Is it possible to find the name/info/stats of the player you're currently playing against on the starcraft2 ladder VIA api or webhook? Lets say in the case of a barcode, where you visually don't even know.Mop2 May 29
May 29 WoW Auction APIs Down for US Realms The WoW AH API has been down for about 24 hours now for US realms: https://does.theapi.work/ https://www.tradeskillmaster.com/wow-apiSapu6 May 29
May 29 About Oauth on Phpbb Hey guys =) I'd like to create a phpbb forum for my guild, since we arrive to WOD. And i would like the membres could login with b.net, as we can do on Wowhead or Battle.net. I'm french, and i've read the documentation and some threads on the forum. I assume that i'm not really good in php coding (as i only know some html and css rules). What do you advise to me do ? Somewhere to start ? Would you advise me to try with some mods like it's often used on phpbb, or another way ? I really thank you, see u.Redmile6 May 29
May 29 SC2 Ladders - multiple profiles in same division - wrong player ranks Hi! My SC2 Twitch extension recently got noticed by Wintergaming - https://starcraft2.com/en-us/profile/1/1/1084304 . At the time I'm writing this he has 4 completed placements in solo mode: random grandmaster and all three races in master league. All of them in the same division. Looking at the Ladders API I noticed I get incorrect data about his 1v1 placements in master. According to the data from the Ladder 278636 I should find 3 profiles of him placed 88, 89 and 90. However, the ladder itself consists of 65 players and Wintergaming's profiles are placed 54, 55 and 56. Same problem is visible on SC2 website. Ladder summary and ladder pages show wrong rank numbers: https://starcraft2.com/en-us/profile/1/1/1084304/ladders?ladderId=summary https://starcraft2.com/en-us/profile/1/1/1084304/ladders?ladderId=278636 My general observation is that when player has a single placement per division their rank number remains consistent with what's presented in the ladder table. In case of players having multiple placements in in the same division rank property stops being reliable. I'll be happy to see this being addressed. If not, I'd like to confirm whether I should stop relying on rank number in ladder API and switch back to more 'manual' methods of extracting players' data from ladder endpoints (not an option I'd welcome but definitely doable).Lukem0 May 29
May 27 How to fetch new community APIs? I believe your new documentation is incomplete, to put it kindly. I want to load the information for WoW achievement 2144. What URL do I use? This page says the endpoint is /wow/achievement/:id https://develop.battle.net/documentation/api-reference/wow-community-api The migration guide says the new host is us.api.blizzard.com https://develop.battle.net/documentation/guides/migration-guide It also says that, "Community API requests only require a client ID." This page says, "For authentication instructions and implementation details, see Using OAuth." https://develop.battle.net/documentation/guides/community-apis The OAuth page just talks about "allow Blizzard to handle authentication and receive a unique user ID, then use an access token for allowed resources like World of Warcraft characters, StarCraft II profile data, or other information as appropriate." https://develop.battle.net/documentation/guides/using-oauth I don't care about authenticating a player, I just want info on an achievement. There are no useful error messages. https://us.api.blizzard.com/wow/achievement/2144 just says "404 Not Found" with no response body. I registered for new client ID. Where do I put it? What's the URL argument or header name? Where was this information in the documentation?erorus7 May 27
May 24 WoW Classic API Will there be any game data API's for WoW Classic when it's released? For things such as player progression, PVP stats, etc? I know the idea is to keep it roughly the same as the original, but hopefully that doesn't include API access lolJimo1 May 24
May 23 Testing Accounts Needed! Hi Blizzard Dev Team! We really need a way to create development/testing accounts for use with the API. I'm the developer of Hearth Keeper (https://calebfriden.com/apps/hearth-keeper/) and I'm using Battle.net sign in to authenticate users in my app. This has been working great & my users love it. However now I'm having an issue: regular accounts trigger a verification code whenever a login happens from a new IP address/region. That's fine for normal users of course, but Apple needs an account they can reliably use to sign-in to review apps for approval on the Apple app store. Whenever they attempt to sign-in with the account I've created for them, they get stuck at the verification step, and are unable to proceed with review. I've gotten around this in the past by contacting Blizzard support and having the account white-listed temporarily for review. However I was just told that they were unable to do this for me again by a support representative and that sharing accounts (even if the sole purpose of the account is to be shared with a reviewer & its essentially their account) is against the EULA. As it stands, I'm completely unable to release updates for my app. Any response would be much appreciated!StarLard2 May 23
May 23 Help with bonusIds When it comes to parsing Auction House Data along with seed and rand(I am just dropping these), bonusLists and modifiers is giving me some trouble to figure out. Is there any plans to open a bonusListid and modifer api? Thanks to posts by erorus (and his list) and Aurifex, I am starting to wrap my head around it, but a full list would be greatly appreciated. In the auction bonusLists I can usually match a item suffix to the bonus Id, but the 2nd number (usually 3500+) doesn't match with anything.iudexgaming0 May 23
May 23 WoW EU API Timeouts It appears all the eu endpoints for the wow api are timing out. Haven't checked it for other games.RIDDICK1 May 23
May 21 falha desconexão durante parridas de hearthstone investi muito nesse jogo mas infelizmente vou parar de jogar devido a frequencia de desconexão durante as partidas de hearthstone, nao esta correto a forma em que age a empresa deixando os clientes no prejuízoSnakeZero1 May 21
May 17 How can I get skill runes images from the server? I am making an app to show diablo information. Everything seems fine, but I've spent quite a long time to get skill runes image, such as frostbite. How can I get the image from the server. Many thanks.stephencao0 May 17
May 16 Overwatch League API Needs Fixing This post is referring to the overwatch league stats API linked below & sites that rely on those pages such as the official overwatch league stats page. https://api.overwatchleague.com/stats/players https://api.overwatchleague.com/players?expand=stats https://overwatchleague.com/en-us/stats -Retired Players such as Dafran & Stellar have been removed from the api. (Effect is still in there for whatever reason). -Traded players need separate stat tracking for each team they're on. -Add team stats please since the above two issues have made calculating team stats impossible. By that I mean that in stage 1 OWL you could calculate and compare team avg stats by multiplying player stats by (minutes/10), adding that number together for each player on a team, and multiplying by 6. Because there is missing data & incorrect data from retired/traded players calculating accurate team stats (such as team final blows/10 mins) is now impossible.Captaincrap91 May 16
May 16 Missing profilemain for WoW characters There are some characters I'm grabbing the avatar and profilemain image for; occasionally I see an issue where either the avatar or profilemain or BOTH are returning a 404. The example I have right now is for: Veysana-Vek'nilash-US. The working avatar url is: render-us.worldofwarcraft.com/character/veknilash/169/169139881-avatar.jpg however, replacing "avatar" with "profilemain" returns a 404: render-us.worldofwarcraft.com/character/veknilash/169/169139881-profilemain.jpgStone4 May 16
May 15 Reference list of public get methods for owl Any chance, we could get a complete list of the API public Getters? for instance: https://api.overwatchleague.com/* for all public calls?Pingu2 May 15
May 14 [OW] Endorsement "Data-value" Good afternoon ! First of all, my apologies for my poor english and this post wich i already made yesterday but for some reasons, it didnt appear on the forum. (this way i lost all the sources i was quoted ect ect...) Anyway, i was trying to create some little personnal software that could give me the number exact of endorsment of each type, the total of endorsement ect... The thing is, after many hours working on differents communauty made API, i decide to go webscrapping myself. A lot of tutorial / reddit / forum talk about a "Data-value" we can inspect while scrapping the page. I found it. but the probleme is that now it is a rate. It seem like : before we had "Data-value" with the exact number of endorsement. And "Data-rate" wich was the %. Now "Data-Value" is a rate from 0 to 1 and "Data-rate" is that same number times 10. My questions are : Am i really that bad at scrapping or is it a change that i didnt get noticed of ? If im doing something bad, can anyone try to tell me what is it ? As well as if u have some solution, im up for any types of solutions. Sincerely, Djo'Djosephus0 May 14
May 14 Item Stats List do not know if someone posted this allready but here's my fast version with help of simulation craft.. <?php $iStats = array( "-1" => "None", "0" => "Mana", "1" => "Health", "3" => "Agility", "4" => "Strenght", "5" => "Intellect", "6" => "Spirit", "7" => "Stamina", //------------------------------- "12" => "Defense Skill", "13" => "Dodge", "14" => "Parry", "15" => "Block", "16" => "Melee Hit", "17" => "Ranged Hit", "18" => "Spell Hit", "19" => "Melee Crit", "20" => "Ranged Crit", "21" => "Spell Crit", "22" => "Melee Hit Taken", "23" => "Ranged Hit Taken", "24" => "Spell Hit Taken", "25" => "Melee Crit Taken", "26" => "Ranged Crit Taken", "27" => "Spell Crit Taken", "28" => "Melee Haste", "29" => "Ranged Haste", "30" => "Spell Haste", "31" => "Hit", "32" => "Crit", "33" => "Hit Taken", "34" => "Crit Taken", "35" => "Resilience", "36" => "Haste", "37" => "Expertise", "38" => "Attack Power", "39" => "Ranged Attack Power", "40" => "Versatility", "41" => "Spell Healing Done", // deprecated "42" => "Spell Damage Done", // deprecated "43" => "Mana Regeneration", "44" => "Armor Penetration", "45" => "Spell Power", "46" => "Health Regen", "47" => "Spell Penetration", "48" => "Block Value", "49" => "Mastery", "50" => "Bonus Armor", "51" => "Fire Resistance", "52" => "Frost Resistance", "53" => "Holy Resistance", "54" => "Shadow Resistance", "55" => "Nature Resistance", "56" => "Arcane Resistance", "57" => "PVP Power", //------------------------------- "59" => "Multistrike", "60" => "Readiness", "61" => "Speed", "62" => "Leech", "63" => "Avoidence", "64" => "Indestructible", "65" => "WOD_5", "66" => "WOD_6", //------------------------------- "71" => "Strenght, Agility, Intelect", "72" => "Strenght, Agility", "73" => "Agility, Intelect", "74" => "Strenght, Intelect" ); /* example usage */ echo $iStats['62']; ?> AresBale9 May 14
May 13 Looking for examples Nuxt-auth and bnet signin Hi there everyone. I have been trying to sort this out all day and I am afraid I am still to new to Javascript. The passport Node.js write up comes close but I would like to use the nuxt-auth module to keep the auth system in house on my app. Does anyone have a good strategy layout? Thank you in advance!NoobTaco0 May 13
May 12 anonymous is not authorized to perform Since this morning I get this error when I try to access any render from WoW community api. Error: {"Message":"User: anonymous is not authorized to perform: es:ESHttpGet"} I had no problem yesterday night. I went to debug/work on my app this morning and had this error. This happens only on my local network, when I try on my phone using my phone's data I can download them fine. Any idea what could cause this?Alexchaos1 May 12
May 9 API Call if Faction Assault underway in BfA? Is there a call to check if a faction assault is currently underway in BfA?DrewF0 May 9
May 8 Guild bank in API ? Hello, i would be interested to know if it's possible to pull the guild bank in API ? I would like to store it somewhere to see who contributes, what items, and last but not least how many time a item is stored in here. It would be then possible to run donation or just clear the bank of stuff that is sitting there since a long time etc... Is it possible ?Rude2 May 8
May 7 Overwatch I already got overwatch on my PC but i want to play on my PlayStation. I haver to buy again the game ??theking1 May 7
May 3 Will WoW Classic AH data be accessible via the API? See title.ihsw5 May 3
May 1 OnUnitIdle not called I am using the official StarCraft 2 API retrieved here: https://github.com/Blizzard/s2client-api I am following the tutorial but when I override OnUnitIdle it never gets called. I have tried creating new units and stopping units from doing anything. Creating a new unit it supposed to call the OnUnitIdle() function, but as when I try it nothing happens. In order to check if it gets called or not I try to print a text to the console window. " virtual void OnUnitIdle(const Unit* unit) final { std::cout << "WAT " << std::endl;" Need help to get this to work!random0 May 1
Apr 28 View guild members in a html page Hello and sorry my english is not good Can someone show me how the code looks like to display a list of all guild members in a html pagefirefoxone7 Apr 28
Apr 24 500 Internal Server Error from WoW Character API I am getting a lot of 500 Internal Server Error "Downstream Error" when using the WoW character API. Maybe 1 in 20 API requests is successful, but most fail with this error. Edit: I see that there's a separate forum for bug reports. My mistake; I'll post there.Selorim1 Apr 24
Apr 24 Any plans to support un-authenticated API calls on new endpoints? Perhaps for low volume, web page based queries?uskimptoc4 Apr 24
Apr 24 Implicit flow examples missing from documentation I am trying to implement a b.net login using a SPA and another client that communicate with a central server. An implicit Flow (https://auth0.com/docs/flows/concepts/implicit) is what I need but the documentation for this is very lacking. Could you show the proper way to obtain the user Access Token and how to verify it on my server using the secret? I do not think those steps are language/framework dependent but just for reference, I am using Ktor (https://ktor.io/servers/features/authentication/oauth.html) and Angular 7Lamba0 Apr 24
Apr 23 Help getting started with a simple realm type call Hello! New to the blizzard API and want to do something very specific. I'll take you through what I've learned so far and where I think I am stuck. I think I have got maybe 75% of the knowledge of what I need to do but just need help connecting the dots :) I want to get the realm 'type' (which I know is PvE) of the US server 'Medivh' from the wow community API and print it on an HTML page. To do this I know I will have to make a JSONP request using the following URL: http://us.battle.net/api/wow/realm/status?realm=Medivh&jsonp In that JSONP that is returned, there should be a string called 'type' which specifies Medivh's realm type that looks like this: "type":"PvE", I also know that in order to print that string into a <div> node with the ID 'result' on my HTML page I will use jQuery like this: <script type="text/javascript"> function foo(data) { $("#result").html(data.type); } $(document).ready( function(){ $.ajax({ url: "http://us.battle.net/api/wow/realm/status?realm=Medivh&jsonp=foo", type: 'GET', dataType: 'jsonp' }); }); </script> Am I correct up until this point? Do let me know. Now, this is where I think I'm stuck. I read the documentation and there was lots of mention of Oauth2 - I did a bit of research into it but most of it is total gibberish to me! I know that it is a security protocol which is mandatory if you want to make API calls, but that's about it. When I type the URL mentioned before into my web browser, I get a 403 denied error. I guess that this is because I'm a user in a web browser and I'm not authorised/haven't configured Oath (because I am a human being not a server). So that means I will have to get Oauth working on my web server where my website, https://barrens.chat, is. Then I suppose that if I do manage to get Oauth working, I will successfully be able to make the API call using the jQuery script on my server. Right? My website has SSL and is running a phpBB installation (v3.2.5). So I guess I could make this Oauth thing work if I could do it through phpBB? I found this guy's phpBB extension in the community resources sticky which looks promising: https://us.battle.net/forums/en/bnet/topic/14728823355#3 But someone in the last reply says that it seems to only be for logging in through bnet, and wouldn't be useful for anything else. There's also another, much more recent phpBB extension here: https://phpbbstudio.com/extensions/battlenet-oauth2-light but again it seems specifically for logging in using bnet credentials. Will the sort of authorisation stuff included in this extension be enough for me to do my jQuery calls, despite this being designed for log ins? Question 1: if I installed either of those phpBB extensions, and got Oauth working correctly, is that enough? Like, will the bnet API from then on accept any calls coming from my domain through the jQuery script or do I need to do extra work after that to make requests? Question 2: there seem to be other ways of getting Oauth 'working' besides this phpBB extension. Can you guys recommend me one and walk me through how to get it working so that I can easily make requests with the jQuery file? Question 3: Is there anything I've said so far that is utterly and totally wrong? Please do point out my mistakes. Any help would be greatly appreciated :) TeebTeeb3 Apr 23
Apr 22 Character bank Hi, I'm working on a personal project regarding WoW items, stash, stacks, missing items, etc and I'm trying to access the items that my char has in it's bank. Is there an API that could help me to do this ? I don't have an issue with it being an API only for 1 char, and could not be able to access someone else's Battlenet bank, or Guild bank, let's say. Kind regards, SaintTheSaint3 Apr 22
Apr 21 Could not verify the provided CSRF token because your session was not found. Hello, I'm actually following https://develop.battle.net/documentation/api-reference/oauth-api instructions First request is doing good But when I try the second step : POST - /oauth/token I have this error: HTTP Status 403 - Could not verify the provided CSRF token because your session was not found. here is my code : $url = "https://eu.battle.net/oauth/userinfo"; ///The data you want to send via POST $fields = [ 'grant_type' => 'authorization_code', 'code' => $_GET['code'], 'redirect_uri' => 'http://creahs.fr/uploader.php' , 'client_id' => 'c143ae84941e46e7b99a5c4a0f8cc6ff' ]; //url-ify the data for the POST $fields_string = http_build_query($fields); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, true); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //So that curl_exec returns the contents of the cURL; rather than echoing it curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); //execute post $result = curl_exec($ch); $info = curl_getinfo($ch); var_dump($info); var_dump($result); If someone could help me it would be really nice :) thanks !Niamortrih0 Apr 21
Apr 20 User specific login session Hello all, I'm working on a mobile app where I have my own system to authenticate users. Once the user is inside the app, I ask them to authenticate with BattleNet through the Authorization Code flow to get his user info or list of characters. The problem I currently have is: I have a user A, he logs in in the app and authenticates with BattleNet, receives a code, a token and later on the user info or list of characters. User A logs out, user B logs in. When I start the Authorization Code flow for user B, he automatically receives a code that belongs to user A, without asking for BattleNet credentials. So the main idea is to maybe link the user account with the BattleNet account in a 1:1 relationship. Is there any way I can do this? I would like to be able to do the following: 1. If a user starts the Authorization Code flow and has not given permission previously, show the BattleNet login site. 2. If the user already gave permission to the app, the app should be able to notice this and provide a code and token that can be user to get user specific info. I'm sorry if this was asked previously, didn't find it in the forums. Thanks!Ciau7 Apr 20