Getting a feed of the latest comments added to all blogs
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 10, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Get a feed that includes all of the comments added to the postings in all of the blogs hosted by the Blogs application from most recent to oldest.

Usage notes

The following resources are available from the recent comments feed:

  • A current copy of this Atom Feed Document (self link).
  • An HTML representation of this feed (alternate link).
  • Report inappropriate content to administrator link (reports link in post entries).

Request parameters

You can use one or more input parameters to limit the number of blog comments returned in the feed. Separate multiple parameters with an ampersand (&).

This will result in an Atom feed document containing the blog comments.

Example

To get a feed of all of the comments made on the blog with the handle home, send the following HTTP request:

The HTTP response would look as follows:

< HTTP/1.1 200 OK

< Date: Tue, 26 Feb 2008 22:13:41 GMT

< Server: IBM_HTTP_Server

< Last-Modified: Thu, 07 Feb 2008 15:27:41 GMT

< Set-Cookie: JSESSIONID=0000qS9OBdXn_r21G4G2gQrwODW:-1; Path=/

< Expires: Thu, 01 Dec 1994 16:00:00 GMT

< Cache-Control: no-cache="set-cookie, set-cookie2"

< Transfer-Encoding: chunked

< Content-Type: application/atom+xml

< Content-Language: en-US

 

Input
Method URI Description
GET /blogs/{homepage}/feed/comments/atom
Name Type Optional Description
homepage
string No {homepage} represents the blog handle of the blog configured to be the home page of the Blogs application. The handle is defined when the home page blog is created by the administrator, and is defined in the <snx:BlogsHomepageHandle> element in the service document for Blogs.
Name Type Optional Description
page
int Yes Page number. Specifies the page to be returned. The default value is 1, which returns the first page.
Note: Specifying 0 returns the first page also. This option is supported for backwards compatability only; it will be deprecated in a future release.
ps
int Yes Page size. Specifies the number of entries to return per page. The default value is 10. The maximum value you can specify is 50.
Output
Content Type: application/atom+xml
Examples
> GET /blogs/myhome/feed/comments/atom HTTP/1.1

> Authorization: Basic ...

> Host: blogs.enterprise.example.com

> Accept: */*


Response returned by the server
<feed 

 xmlns="http://www.w3.org/2005/Atom" 

 xmlns:thr="http://purl.org/syndication/thread/1.0" 

 xmlns:app="http://www.w3.org/2007/app" 

 xmlns:snx="http://www.ibm.com/xmlns/prod/sn" 

 xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/">

  <id>urn:lsid:ibm.com:blogs:comments-51735533-67da-49e6-9804-9e5151fc24c7</id> 

  <title type="html">Conference Sites Blog (Comments)</title> 

  <subtitle type="html">Gather info (Comments)</subtitle> 

  <link 

   rel="alternate" 

   type="text/html" 

   href="https://enterprise.example.com:9444/blogs/myblog?lang=en_us" /> 

  <link 

   rel="self" 

   type="application/atom+xml" 

   href="https://enterprise.example.com:9444/blogs/myblog/feed/comments/atom?lang=en_us" /> 

  <link 

   rel="first" 

   type="application/atom+xml" 

   href="https://enterprise.example.com:9444/blogs/myblog/feed/comments/atom?lang=en_us" /> 

  <openSearch:totalResults>2</openSearch:totalResults> 

  <updated>2009-07-15T16:48:36-04:00</updated> 

  <generator uri="http://www.ibm.com/xmlns/prod/sn" version="2.5">

   IBM Connections - Blogs

  </generator> 

  <entry 

   xml:base="https://enterprise.example.com:9444/blogs/myblog/entry/two_lakes_conference_center">

    <id>urn:lsid:ibm.com:blogs:comment-d6d19ad0-7355-4a87-a500-d4fe8be71c5e</id> 

    <title type="text">Re: Two Lakes Conference Center</title> 

    <author>

      <name>Andy Lewis</name> 

      <email>alewis@us.example.com</email> 

      <snx:userid>5b788f40-7d67-102c-845c-e2ebc3ec5536</snx:userid> 

      <snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>

    </author>

    <link 

     rel="self" 

     type="application/atom+xml" 

     href="https://enterprise.example.com:9444/blogs/myblog/feed/comment/atom?

      commentid=d6d19ad0-7355-4a87-a500-d4fe8be71c5e&lang=en_us" /> 

    <link 

     rel="alternate" 

     type="text/html" 

     href="https://enterprise.example.com:9444/blogs/myblog/entry/two_lakes_conference_center?

      lang=en_us#comment-1247690916968" /> 

    <link 

     rel="http://www.ibm.com/xmlns/prod/sn/recommendations" 

     href="https://enterprise.example.com:9444/blogs/myblog/feed/commentrecommendations/

      d6d19ad0-7355-4a87-a500-d4fe8be71c5e/atom?lang=en_us" /> 

    <app:collection 

     href="https://enterprise.example.com:9444/blogs/myblog/api/recommend/comments/

      d6d19ad0-7355-4a87-a500-d4fe8be71c5e?lang=en_us">

      <title type="text">Recommendations</title> 

      <category scheme="http://www.ibm.com/xmlns/prod/sn/collection" term="recommend" /> 

      <app:categories fixed="yes" /> 

    </app:collection>

    <published>2009-07-15T16:48:36-04:00</published> 

    <updated>2009-07-15T16:48:36-04:00</updated> 

    <content type="html">

      <! [CDATA [ Attended a conference here and thought it was a great location.

        ]]&gt; 

    </content>

    <summary type="html">

      <! [CDATA [ Attended a conference here and thought it was a great location.

        ]]&gt; 

    </summary>

    <thr:in-reply-to 

     ref="urn:lsid:ibm.com:blogs:entry-cb2a13c6-b3ac-43c9-96b0-4459218dec94" 

     source="https://enterprise.example.com:9444/blogs/myblog/feed/entries/atom?lang=en_us" 

     href="https://enterprise.example.com:9444/blogs/myblog/entry/two_lakes_conference_center?

      lang=en_us" 

     type="text/html" /> 

    <snx:rank scheme="http://www.ibm.com/xmlns/prod/sn/recommendations">0</snx:rank> 

    <source>

      <id>urn:lsid:ibm.com:blogs:entrycomments-cb2a13c6-b3ac-43c9-96b0-4459218dec94</id> 

      <title type="text">BVT Blog 0715150420 - Comments</title> 

      <link 

       type="application/atom+xml" 

       rel="self" 

       href="https://enterprise.example.com:9444/blogs/myblog/feed/entrycomments/

        two_lakes_conference_center/atom?lang=en_us" /> 

     <link 

      type="text/html" 

      href="https://enterprise.example.com:9444/blogs/myblog/entry/two_lakes_conference_center?

       lang=en_us" /> 

    </source>

  </entry>

</feed>