
这是暴雪提供的WebAPI,能够通过网页的方式訪问玩家的用户信息。结构相当清晰,非常有借鉴价值。
应用JSON(JavaScript Object Notation)做数据交换,很好理解。 以我的暗黑3账号为例: battletag-name ::= <regional battletag allowed characters>
battletag-code ::= <integer>
hero-id ::= <integer>
url ::= <host> "/api/d3/profile/" <battletag-name> "-" <battletag-code> "/
GET /api/d3/profile/Straton-1/hero/1 Host: us.battle.net
截取一段获取到的人物属性 /6fa02dd9-f46b-4933-8f5b-d49d5099b8a9/3b6aH4DhVrgoWJo8QMtbZM9FDg9UNo3GjWjraYqoBd0!/b/dBM44cgNCAAA&bo=XAERAgAAAAABAGk!" width="348" alt="" style="margin:0px; padding:0px; border-width:0px; border-style:none; vertical-align:top"> |