Getting a list of recommenders
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 15, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Retrieve a feed that lists the people who have recommended a blog posting.
To get a list of recommenders, complete the following steps:
1. Retrieve the blog entry that you want to recommend. See Retrieving blog posts.
2. In the returned entry document, find the <app:collection> element that has a child <title> element with a value of Recommendations, and then send a GET request to the web address defined in the href attribute of that element.

If done properly, you will create a feed that lists the names of the people who have recommended the blog posting.

Input
Method URI Description
GET /blogs/{communityUuid}/api/recommend/entries/{entryId} Value of the href attribute of the <app:collection> element that has a child <title> element with a value of Recommendations in the blog entry.
Name Type Optional Description
communityUuid
string No Community UUID of the blog entry
entryId
string No The ID of the blog entry.
Output
Content Type: application/atom+xml
Code Description
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
Examples
For example, the following feed indicates that one person, named Amy Murphy, has recommended the entry.

Response returned by the server
<?xml version="1.0" ?>

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

	<updated>2009-07-06T16:42:59.000Z</updated>

	<generator

	version="2.5"

	uri="http://www.ibm.com/xmlns/prod/sn">IBM Connections - Blogs

	</generator>

	<id>urn:lsid:ibm.com:blogs:recommenders-e5605c46-6cc1-4d20-a3c7-22acfdde6c39</id>

	<title type="text">Entry Recommended By</title>

	<link

	href="https://enterprise.example.com:9444/blogs/roller-ui/rendering/api/myhomeblog0706124009/

	api/recommend/entries/e5605c46-6cc1-4d20-a3c7-22acfdde6c39"

	rel="self"

	type="application/atom+xml" />

	<os:totalResults

	xmlns:os="http://a9.com/-/spec/opensearch/1.1/">1</os:totalResults>

	<entry>

	<id>urn:lsid:ibm.com:blogs:person-5adff8c0-7d67-102c-845a-e2ebc3ec5536</id>

	<title type="text">Amy Murphy</title>

	<summary type="text">Amy Murphy</summary>

	<updated>2009-07-06T15:40:05.562Z</updated>

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

	<contributor>

	<name>Amy Murphy</name>

	<email>amurphy@example.com</email>

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

	5adff8c0-7d67-102c-845a-e2ebc3ec5536

	</snx:userid>

	</contributor>

	</entry>

	</feed>