开发者

C# - Xbox Live Stat Grabber

I'm working on an xbl 开发者_C百科stat grabber. I have a problem I dont understand how to get the "gamer card"

Heres an example : http://www.youtube.com/watch?v=6HA-uz_v6A0&feature=related

I already have the avatar but I don't get how you can grab the stats and recent games...


You need access to the Xbox Live API, I think you have to apply to Microsoft to get on their 'Community Developer' programme, although it's a bit hazy on the site as to whether they are accepting applications or not.

One kind fellow (who I think is a Microsoft employee) saw that this was a terrible oversight from his employers decided to offer as web service that plugged into the Xbox Live network so you can pull statistics down, you can find info about it and a website here: -

http://duncanmackenzie.net/Blog/put-up-a-rest-api-for-xbox-gamertag-data

It's very comprehensive and should give you all the data you need (Gamerscore, current status, last game played etc)

EDIT: Extra stuff that might help

I'm not too familiar with C# but the process of using the service would be to do the following in your application: -

  1. Construct your URL with a/your gamertag as the argument
  2. Use some URL/Networking API (C#/.NET must have something like this somewhere) to load the URL and retrieve the contents. This should return you a big string containing a bunch of XML
  3. Parse the XML into your application using some sort of XML parsing API (again, I'd imagine C#/.NET has these things built into the framework)


From the looks of the program, the gamercard info looks as if it is just an embedding based upon the gamer tag. You can find info on embedding your Xbox Live gamercard here.

The video author said the Halo stat information is coming courtesy of a site called HaloCharts.com. I don't know if he is embedding the information, perhaps reading an RSS feed, or if he is extracting data from the HTML.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜