Posting status update to IBM Connections Community

℡╲_俬逩灬. 提交于 2019-12-12 04:49:14

问题


I'm able to post a status update to an IBM Connections community. However the status update is visible in the Recent Updates section and not in the Status Update section.

I'm using the following URL: https://host.com/connections/opensocial/rest/activitystreams/urn:lsid:lconn.ibm.com:communities.community:5a0fdd28-127e-4bd0-969f-ef1254ecd9dc/@all/@public

And the following JSON:

{"object":{"url":"url","objectType":"note","id":"109876b6-f33b-3210-45bc-966a5d2cc096-rai1sgp","displayName":"Tracy Morgan"},"title":"${add.target}","target":{"url":"https://host.com/communities/service/html/community/updates?communityUuid=5a0fdd28-127e-4bd0-969f-ef1254ecd9dc","objectType":"community","id":"urn:lsid:lconn.ibm.com:communities.community:5a0fdd28-127e-4bd0-969f-ef1254ecd9dc","displayName":"FEBER"},"verb":"post","generator":{"url":"url","id":"App","displayName":"inside.FEBER"},"actor":{"objectType":"person","id":"urn:lsid:lconn.ibm.com:profiles.person:8072DB8F-7FD2-497D-B341-8EA75B370C4D","displayName":"Vikram"}}

Is there something I need to change in the REST URL that will make the abpve JSON be populated in the Status Update section as well as the Recent Update section of IBM Connections. We are using IBM Connections 5.


回答1:


Sure, you are most likely running it an issue using the nonce.

Try this add the X-Update-Nonce header to your request. You can get the Nonce value from the http://apps.na.collabserv.com/files/basic/api/nonce .

Add the Header to the HttpRequest It should then work.

http://bastide.org/2014/10/08/cross-site-request-forgery-and-ibm-connections-micro-blog/



来源:https://stackoverflow.com/questions/26988655/posting-status-update-to-ibm-connections-community

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!