I would like to give you access to the forum rest API. Hopefully this will inspire you to create some kind of reader perhaps
URL
This method will give you a list of boards on TinyCLR forum.
[line]
URL
This method will give you a list of topics within a board.
Required Parameter
boardId=xx
xx is the ID of the board from the board list.
[line]
URL
This method will give you a list of messages within a topic.
Required Parameter
topicId=xx
xx is the ID of the topic from the topic list.
[line]
The following parameters apply to the [italic]topiclist[/italic] and [italic]msglist[/italic] URL calls:
page=xx
xx is the page your currently viewing. This is one by default.
limit=xx
xx is the number of results per page.
For topics this may be set anywhere from 1 to 25. By default it is 25.
For messages it can be 1 to 15. By default it is 15.
Coolness. Any chance you can OData your service so we can use from WCF Data services and linq? On the server side, you leverage the built in query syntax and ability so you donāt have to surface api methods, just expose the tables in the DataService with read access and you get query for free. Also things like $expand, $filer, $count, $orderby, $select, $skip, $top for free.
Nice one Josh, looks awesome. Any chance we can have a non-public option, so thereās some level of authentication/API Key, and then we can have a āmy unreadā
Very cool. My Panda based forum ticker will be done soon. You wonāt be able to reply, but you could read and see statistics of number of unread, etc.
@ William
I donāt foresee any plans to make it available via an OData service. This API was simple and quick to create. I may find some personal time to expand upon it and allow authentication and making posts.
@ Josh. Not trying to push a direction. But you may want to check out WCF DataServices at some point if you have not already. The point here is you get all that stuff for free without having to define custom api and the end user gets more value from it. You just map your table structure with entity framework and expose the dataservice and your done. You get query operators and the normalized namespaces for free and service methods if you need. And OAuth, but have tried that yet. So donāt have to reinvent the wheel for most things. MS really hit a winner on that one :).
Wouter I made a change to the system. When within topiclist or msglist you can add a parameter:
dateFormat=xxx
[italic]topiclist[/italic] defaults to ādatetimeā but it you can set it to āunixtimeā
[italic]msglist[/italic] defaults to āelapsedā e.g. ā4 days agoā but can be set to ādatetimeā and āunixtimeā
Under [italic]msglist[/italic] I changed the element to
Any chance of getting me a way to login for posts? I have a reader ready for both stand-alone & Pyxis 2 apps but Iād really love to allow posts.
I had previously done a login using HTTP Post to process/account.php but it no longer seems to be executing correctly. I can set get all the threads but no acct data like unread, etc.
Iām open to suggestions for posting methods with the API. Iām thinking a successful API log in returns a token. This token is passed along to make post/edit requests. Tokens expire after 15 minutes.