Activity Stream POST with Embedded Experience
Added by IBM contributorIBM | Edited by Claudia R Elbourn on June 9, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Embedded experiences allow the user to create a customised experience for anyone who clicks on an event. The example below references a Google wisdom gadget so that you can see exactly how a gadget reference works without building one. In a real deployment, it is likely that you would want to include some context information with a gadget reference so that the appropriate object could be displayed rather than a generic embedded experience.

POST content


 "generator": {

"image": {"url": "/homepage/nav/common/images/iconProfiles16.png"},

"id": "demoapp",

"displayName": "Demo Application",

"url": "http://www.ibm.com/"

},

  "actor": {

  "id": "@me"

  },

  "verb": "post"

, "title": "You have been receiving Wisdom !",

  "content": "<b>You</b> have been receiving <i>wisdom</i>",

  "updated": "2012-01-01T12:00:00.000Z",

"object": {

"summary": "Daily pearls of wisdom",

   "objectType": "note",

    "id": "wisdom1",

   "displayName": "Wisdom",

    "url": "http://example.org",

}

,  "openSocial": {

"embed": {

"gadget": "http://example.org/svn/trunk/wisdom.xml",

"context": {"id":"12345"}

}

}

}


Note:
  • The embedded experience context above is unused by the gadget in question.