将状态更新发布到IBM Connections社区 [英] Posting status update to IBM Connections Community

查看:166
本文介绍了将状态更新发布到IBM Connections社区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够将状态更新发布到IBM Connections社区.但是,状态更新在最近更新"部分中可见,而在状态更新"部分中不可见.

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

以及以下JSON:

{"object":{"url":"url","objectType":"note","id":"109876b6-f33b-3210-45bc-966a5d2cc096-rai1sgp","displayName":"Tracy Morgan }," title:" $ {add.target}," target:{" url:"

{"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"}}

我是否需要在REST URL中进行一些更改,以使abpve JSON填充在IBM Connections的状态更新"部分以及最近更新"部分中.我们正在使用IBM Connections 5.

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.

推荐答案

当然,您很可能使用随机数来运行它.

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

尝试此操作,将X-Update-Nonce标头添加到您的请求中.您可以从 http://apps.na.collabserv.com获取Nonce值. /files/basic/api/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 .

将标题添加到HttpRequest中 然后它应该工作.

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/

这篇关于将状态更新发布到IBM Connections社区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆