Community articleFollowing topics
Added by IBM contributorIBM on April 8, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


Activity Stream Search provides the ability to follow a "topic", which is either a word or a term that contains several words. This topic will then be identified in the text of public events, and these events will be delivered to the personal stream of whoever followed the topic (BUT only when this stream is delivered using the search index, as the DB flow does not consider followed topics).

Following/un-following a topic, or getting a list of followed topics, is done via the standard Connections Following API - /news/follow/atom/resources . For topics, we are adding a new source called topics and a new resource type called topic.


Valid topics to follow

For performance reasons, not any topic may be followed.

Trying to follow an invalid topic will result in an HTTP Bad Request error (status code 400).

A valid topic satisfies the following rules:

  • Does not start with a whitespace character
  • After every special character (e.g. #, &, !) there is a normal word.
  • Contains no more than 3 words

Examples of valid topics:

  • cat
  • #cat
  • cool-stuff
  • Lotus Connections

Examples of invalid topics:

  • cat#
  • cool-stuff-are-great
  • Lotus Connections Version 4.5
Method URI Description
POST /news/follow/atom/resources?source=topics Follow a topic
DELETE /news/follow/atom/resources/{entryId}?source=TOPICS&type=TOPIC&resource={topicName} Un-follow a topic
GET /news/follow/atom/resources/{entryId}?source=TOPICS&type=TOPIC&resource={topicName} Get a list of followed topics
Content Type: application/atom+xml
Sample Request:
<category term="resource-follow" scheme=""></category>
<category term="topics" scheme=""></category>
<category term="topic" scheme=""></category>
<category term="my_topic" scheme=""></category>
Name Type Optional Description
string No ID of topic entry
string No Name of topic entry.
Content Type: application/atom+xml