Diablo® III

How could i get the tooltip of the skill?

I could get the hero's data by
http://tw.battle.net/api/d3/profile/PureMan-3155/hero/14884342


In this data,the skill tooltipUrl:
"tooltipUrl" : "skill/barbarian/war-cry"
,how could i get these data?

I have tried this url:
http://tw.battle.net/d3/zh/tooltip/skill/barbarian/whirlwind
.
But this url is not jsonp style.
Reply Quote
09/04/2012 10:00 PMPosted by PureMan
But this url is not jsonp style.

http://tw.battle.net/d3/zh/tooltip/skill/barbarian/whirlwind?format=jsonp

I have another question though.
Some time ago it was possible too get skill and rune in one tooltip via jsonp.
Then it was disabled. Was it disabled intentionally or it is a bug?

Example:
http://us.battle.net/d3/en/tooltip/skill/barbarian/whirlwind?runeType=a - contains rune

http://us.battle.net/d3/en/tooltip/skill/barbarian/whirlwind?runeType=a&format=jsonp - doesn't contain rune
Reply Quote
I have another question though.
Some time ago it was possible too get skill and rune in one tooltip via jsonp.
Then it was disabled. Was it disabled intentionally or it is a bug?

Thank you very much!

About your question,I have found a url to get the rune description:
http://us.battle.net/d3/en/tooltip/rune/whirlwind/a?format=jsonp
Reply Quote
Yes, there are urls for runes.
What is missed is tooltip with skill and rune combined.
Reply Quote
09/04/2012 11:50 PMPosted by Kernel
http://tw.battle.net/d3/zh/tooltip/skill/barbarian/whirlwind?format=jsonp

This url also has problem.The callback is always:Bnet.D3.Tooltips.registerData.It's driving me crazy!
Reply Quote
09/06/2012 02:56 AMPosted by PureMan
This url also has problem.The callback is always:Bnet.D3.Tooltips.registerData.It's driving me crazy!


I know the solution. It's just need to understand the way that jsonp works.
In ajax :
jsonpCallback:'Callback',


And defined an object like this:
var Bnet={
D3:{
Tooltips:{
registerData:function(data){
Callback(data.tooltipHtml);
}
}
}
}
Reply Quote
no plain json for this?
Reply Quote
09/11/2012 10:04 AMPosted by XjSv
no plain json for this?


I have this question too, I didn't found plain json for skill or skill tooltip. How could I get it?
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]