开发者

Disqus API for getting the list of posts from the forum

I am using the Disqus API for getting the list of posts for a particular forum. The url that i am using to get the posts is - 'http://disqus.com/api/3.0/forums/listPosts.json' In the disqus api docs they have provided the parameters that can be passed to the above url. Out of which 'since' is one, which can be used to get all the posts after the specified date. In the api docs they have mentioned that we can use Unix timestamp (or ISO datetime standard) as the value for the 'since' param. I have tried with both types of values but it gives me all the posts i.e. the since constraint is never applied.

开发者_如何学Go

Can you please help me out to know how to use 'since' param.

Thanks !!


yes the order param is bydefault set to 'desc'...you can get more info on this link: http://disqus.com/api/docs/forums/listPosts/


I use mootools, can you show me javascript code for that ajax request?

My js is:

new Request.JSONP({    
          url :"https://disqus.com/api/3.0/threads/list.jsonp?api_key=9ldXlWCWlsyjMI3qvf03Y8OQCNxvAMklHkrNVcpBKm220XJHXsU0QDdr0TCLM1kz",//&forum=colourasexperience&thread=ident:cae52020",
          callbackKey: 'showMyInfoes', 
          onSuccess: function(jdata){
                //console.log(jdata);       
          } 
}).send();

Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜