2012年8月30日 星期四

About Diablo III Profile

API Documentation for the D3 Web API.

https://github.com/Blizzard/d3-api-docs

example: 

Career Profile

http://us.battle.net/api/d3/profile/gressil-3533/


Hero Profile


http://us.battle.net/api/d3/profile/gressil-3533/hero/2448092


Item Information


http://us.battle.net/api/d3/data/item/CmUIidfYyA8SBwgEFXz5Tl0dhgJj6h12Tww1HT-kUAcdR_GUPyILCAEVyEQDABgWIAAwDTiPBEAASApQDGCTBWolCgwIABDkloGUgYCAgCESFQiA0K7sDBIHCAQVYvWLXzANOABAARDF5ar3Chj45ffUC1AEWAI


Follower Information


http://us.battle.net/api/d3/data/follower/enchantress

Artisan Information
http://us.battle.net/api/d3/data/artisan/jeweler

======

App cache path

/sdcard/android/data/com.yt.diablo/cache/


======

Detailed item information

String us = "http://us.battle.net/d3/en/tooltip/";
String eu_de = "http://eu.battle.net/d3/de/tooltip/";
String eu_es = "http://eu.battle.net/d3/es/tooltip/";
String eu_fr = "http://eu.battle.net/d3/fr/tooltip/";
String eu_ru = "http://eu.battle.net/d3/ru/tooltip/";
String eu_it = "http://eu.battle.net/d3/it/tooltip/";
String ko = "http://kr.battle.net/d3/ko/tooltip/";
String zh = "http://tw.battle.net/d3/zh/tooltip/";


String url = your language;


url + item id

such as:

http://us.battle.net/d3/en/tooltip/item/CmUIidfYyA8SBwgEFXz5Tl0dhgJj6h12Tww1HT-kUAcdR_GUPyILCAEVyEQDABgWIAAwDTiPBEAASApQDGCTBWolCgwIABDkloGUgYCAgCESFQiA0K7sDBIHCAQVYvWLXzANOABAARDF5ar3Chj45ffUC1AEWAI


======

Item dialog

use webview

String usCSS = "http://us.battle.net/d3/static/css/tooltips.css";
String euCSS = "http://eu.battle.net/d3/static/css/tooltips.css";
String koCSS = "http://kr.battle.net/d3/static/css/tooltips.css";
String zhCSS = "http://tw.battle.net/d3/static/css/tooltips.css";


<html>
<link rel="stylesheet" type="text/css" media="all" href=" your css "/>
<style type=\"text/css\">

.ui-tooltip { background: #1d180e; padding: 1px; border: 1px solid #322a20; opacity: 0.9; max-width: 355px; border-radius: 2px; box-shadow: 0 0 10px #000; }

.ui-tooltip .tooltip-content { background: black; padding: 10px; color: #CFB991; font-size: 12px; }

.ui-tooltip-d3 { opacity: 1; }" + ".ui-tooltip-d3 .tooltip-content { padding: 0; }

.ui-tooltip .subheader { font-size: 18px; color: #F3E6D0; font-weight: normal; margin-bottom: 4px; }

.ui-tooltip table { border-collapse: collapse; border-spacing: 0; }

.ui-tooltip td { margin: 0; padding: 0 }

</style>
<body>
<div class="ui-tooltip">
Detailed item information
</div>
</body>
</html>