Reputation: 947
I know we can microblog (ublog) to a community by sending JSON to this endpoint:
https://CONNECTIONSHOST/connections/opensocial/rest/**ublog**/urn:lsid:lconn.ibm.com:communities.community:cbcdf38a-8526-4610-a83a-9ed6744de6be/@all
We can also post JSON that contains embedded experience to the activitystream using this endpoint:
https://CONNECTIONSHOST/connections/opensocial/xxx/rest/**activitystreams**/@me/@all/@all
The documentation (http://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Connections+4.5+API+Documentation#action=openDocument&res_title=Community_specific_feeds_ic45&content=pdcontent ) suggests that you can specify a community for the activitystream service, but when I post the embedded experience JSON to this endpoint:
https://CONNECTIONSHOST/connections/opensocial/xxx/rest/**activitystreams**/urn:lsid:lconn.ibm.com:communities.community:cbcdf38a-8526-4610-a83a-9ed6744de6be/@me/@all
Than the update is just posted to the homepage (main activity stream).
When I post the embedded experience JSON to the ublog service, the embedded experience is not displayed just the basic content.
The question is how can I share an embedded experience with just the community ?
Upvotes: 1
Views: 279
Reputation: 81
The basic requirements for posting to a stream is to replace the @me in the url with the id of the community, giving you something like the following -
https://<domain>/connections/opensocial/rest/activitystreams/urn:lsid:lconn.ibm.com:communities.community:[rest of community id]/@all/@all
There is a quick trick you can use to make sure you have the right URL. Just open up the community and (using Firebug or an equivalent) check the URL of the network request made when you select Recent Updates (it will be the request with @all in it). Remove everything after the '?' and this is the URL you need.
Some notes on posting to a Community
Upvotes: 2