DiggApiNet
DiggApiNet is a .NET framework 2.0 wrapper for the Digg API.
Notice: This is a complete rewrite of the library, and is not a drop-in replacement for previous versions.
The DiggApiNet library makes it really easy to query the Digg API for any type of data. Here is an example of getting story data from Digg, and displaying some information about the story.
1 2 3 4 5 6 7 8 9 | Digg digg = new Digg("http://headzoo.com/diggapinet"); FetchStories stories = new FetchStories(digg); DiggList<Story> list = stories.FetchAll(); foreach(Story in list) { Console.WriteLine(story.Title); Console.WriteLine(story.Description); Console.WriteLine(story.Diggs); } |
It really is pretty easy to use. Here is an example of getting comments from a specific Digg user.
1 2 3 4 5 6 7 8 | Digg digg = new Digg("http://headzoo.com/diggapinet"); FetchComments comments = new FetchComments(digg); DiggList<Comment> list = comments.FetchByUser(new User("headzoo")); foreach(Comment comment in list) { Console.WriteLine(comment.Text); Console.WriteLine(comment.Replies); } |
There are dozens of examples of using DiggApiNet in the documentation. You may want to start with the Quick Start guide, or move onto the Tutorials for slightly advanced examples.





Recent Comments