Visual Studio Achievements API
- Posted: Nov 22, 2011 at 2:52 PM
- 3,820 Views
- 12 Comments
You can access the Visual Studio Achievements via an API.
To get a list of all achievements as JSON, do an HTTP GET to the achievements page like this: http://channel9.msdn.com/achievements/visualstudio?json=true
To get a list of a user's achievements, do an HTTP GET to the user's achievements page. For example, getting all my achievements looks as follows: http://channel9.msdn.com/niners/karstenj/achievements/visualstudio?json=true. Simply replace the karstenj with any user who has registered for achievements and you'll be good to go. Note that this will return a merged set of achievements the user has earned combined with the achievements a user has not earned yet, just like is shown in the UI.
To get a list of the user's achievements that only shows earned achievements, do an http GET to the user's achievements page passing the querystring raw=true. For example, using my username of karstenj the url would look like this:http://channel9.msdn.com/niners/karstenj/achievements/visualstudio?json=true&raw=true.
To get JSON-P, pass the additional querystring callback={callback_name}.
We've got a sample coming that shows how to use this API to add a widget to your blog, displaying the achievements you've earned. Check back soon!
Comment on the Post
Already have a Channel 9 account? Please sign in
Follow the Discussion
Hi Karsten!
Is it possible to get the leader board as JSON?
The addin for VS is yet not published and visible in the gallery for everyone. Please?
I'm hoping there are more achievements on the way. Right? Right?
i hope samething
ฮาๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ
Hi, I've created a little library wrapper for .NET, you can find it here: https://github.com/alexsuslin/VSAchievementsClient.NET
Aw I was hoping this meant there was an API for developing your own achievements. That would be great! :)
@Alexsuslin: Restsharp dependency is missing from your upload at https://github.com/alexsuslin/VSAchievementsClient.NET/tree/master/external
How about an API to add achievements?
As a Build Manager I've a whole host of Broken Build, Bad Merge, Bad Comment achievements I'd like to stamp on the developers
VSAchievements for Windows Phone released.
Will leaderboard be added to the API?
@Maddus Mattus:
@Maddus Mattus:
Remove this comment
Remove this thread
close