[WoW] Progression sometimes return 0 Bosskills

API Discussion
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.

Join the Conversation

Return to Forum