tags:

views:

215

answers:

2

I'm working on an xbl 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...

Thanks!

PS. Please don't tell me its been done its too help me learn C# not make a ground breaking NEW program..

A: 

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.

Anthony Pegram
+1  A: 

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)
djhworld
Ugh, is there a tutorial on that somewhere. I'm a noob and don't get how to implement his web service.
I wanna use the second link the XML file btw...
I've added some extra material to my reply that might help
djhworld
You do need a private key to access the XCDP feeds; I don't believe new members are being accepted into XCDP right now (though, admittedly, I haven't developed any apps using the feeds in about a year, so I could be wrong)
James McNellis