IBM Connections API-在社区中上载文件并获得随机数-小部件 [英] IBM Connections API - Uploading files in a community and getting nonce - Widget

查看:76
本文介绍了IBM Connections API-在社区中上载文件并获得随机数-小部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要从小部件将文件上传到社区(而不是去社区中的文件部分并上传)

There is a requirement to upload a file into a Community from an widget ( instead of going to files sections within a community and upload )

  1. 我们可以将文件从窗口小部件上传到社区文件部分.我在此处找到了这篇文章讨论上传文件,但不在社区"部分下.是否可以通过社区部分上传文件?任何参考都会有帮助

  1. Can we upload files from an widget into a Community Files Section. I found this article here which talks about uploading files, but not under Community section. Is uploading files through community section possible ? Any reference would help

我们如何在小部件中获得Nonce?我们还是需要传递身份验证参数,还是可以使用当前登录用户的身份验证参数?

How do we get a Nonce in a widget ? Do we still need to pass authentication parameters, or can use those from the currently logged in user.

推荐答案

您应该看一下 http://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Adding_a_file_using_a_multipart_POST_ic50&content=apicontent *但是你 您要发布此网址格式 https://{serverUrl}/files/basic/api/communitylibrary/{communityUuid}/feed

You should look at http://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Adding_a_file_using_a_multipart_POST_ic50&content=apicontent * however you you want to post this url pattern https://{serverUrl}/files/basic/api/communitylibrary/{communityUuid}/feed

对于随机数 如果您专门在iWidget中,则可以查看csrf_token并将其用于X-Update-Nonce标头中.

For the nonce if you are in an iWidget specifically, you can look at the csrf_token and use that in the X-Update-Nonce header.

但是,不能保证它仍保持命名为csrf_token.您应该使用 http://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Getting_a_cryptographic_key_ic50&content=apicontent

However, there is no guarantee that it remains named csrf_token. You should use http://www-10.lotus.com/ldd/appdevwiki.nsf/xpAPIViewer.xsp?lookupName=API+Reference#action=openDocument&res_title=Getting_a_cryptographic_key_ic50&content=apicontent

这篇关于IBM Connections API-在社区中上载文件并获得随机数-小部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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