Code Snippet RSS Dashboard

Attached is the code for my RSS dashboard, using the DaniWeb API. It's an improved version of the mashup I posted earlier, using jQuery to get all feeds asynchronously. The part which initially loads the forums is shown below. It creates an API object, and a Parser object. The first gets the forums list in JSON format, the second the extracts all forums to create the initial empty div's. A static method to a decorator function is passed, which adds the actual markup. The Parser and Decorator classes are in the zip file, so I won't discuss those here. If …

Member Avatar
Member Avatar
+1 forum 9

Hello This is a demo showing Java interacting with Daniweb's new API ( http://www.daniweb.com/api/documentation ) You introduce a member's name and it should show you the total number of posts he has made. Demo is a proof of concept: No bug checking, error checking, etc is in this code. In order to make this work you need the Jersey library. Download here: http://jersey.java.net/nonav/documentation/latest/chapter_deps.html#core_client Any comments, bugs, glitches, etc, please say and Ill look into it.

Member Avatar
Member Avatar
+4 forum 11

RestSharp library needed

Member Avatar
Member Avatar
+4 forum 16

OK, as promised, here's an updated 'quick(!) and dirty' class for retrieving and setting data via the Daniweb API. It allows the extraction of data based around: # DATA RETRIEVAL & SETTING # ## non-OAuth ## * forums * articles * posts * members * activity points * endorsements * reputation ## OAuth (requires client_id and secret key) ## * who am i? (**me** - more data than from non-OAuth members) * articles (expansion of non-OAuth articles) * watched articles (watch and unwatch) * voting on posts (upvote and downvote) * PMs **(currently inactive)** ## Direct URL retrieval ## * …

Member Avatar
Member Avatar
+2 forum 2

The End.