将文件添加到编程的IBM Connections社区 [英] Add file programmatically to IBM Connections Community

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

问题描述

我想以编程方式上传文件到的IBM Connections社区档案库。
我能上传到文件,然后与社区共享,但遗憾的是不期望的行为。

I am trying to upload files programmatically to an IBM Connections Community File library. I am able to upload to files and then share with the community, but unfortunately is not the desired behavior.

我跟着API文档(<一个href=\"http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Creating_community_files_ic50&content=apicontent\" rel=\"nofollow\">http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Creating_community_files_ic50&content=apicontent)

我发送一个POST到这个URL:/文件/基本/ API /社区/ {} community_uuid /反省

I am sending a POST to this URL: /files/basic/api/community/{community_uuid}/introspection

我试图用一个文件Atom条目文档,内容类型:应用程序/原子+ XML
但它不工作,并给我一个405以下错误:
UnsupportedOperation

I tried using a file Atom Entry document, and Content-Type:application/atom+xml But it's not working and giving me a 405 with following error: UnsupportedOperation

- >请求发送

POST /文件/基本/ API /社区/ 00f04081-f000-4752-bd88-8b73d281fb19 /反省
内容类型:应用程序/原子+ XML
&LT; XML版本='1.0'编码='UTF-8'&GT;
&LT;入境
    的xmlns:THR =HTTP://purl.org/syndication/thread/1.0
    的xmlns:OpenSearch的=的http://a9.com/-/spec/opensearch/1.1/
    的xmlns:SNX =HTTP://www.ibm.com/xmlns/prod/sn
    的xmlns:TD ='金塔:ibm.com/td
    的xmlns =HTTP://www.w3.org/2005/Atom'>
    &LT; TD:标签&gt;测试restore20&LT; / TD:标签&gt;
    &LT;标题类型=文本&GT;测试restore2&LT; /标题&GT;&LT; /进入&GT;

我试着用同样的方法比单独的文件,一个基本的头,但仍然给了我一个405以下错误:
UnsupportedOperation

I tried using the same method than for stand alone file, with a basic header but still giving me a 405 with following error: UnsupportedOperation

- >请求发送:
POST /文件/基本/ API /社区/ 00f04081-f000-4752-bd88-8b73d281fb19 /反省
内容类型:二进制/八位字节流
X-更新-杜撰:其中;随机数&GT;
弹头:TMap_Next_Book.pdf
文件名:/Users/Downloads/TMap_Next_Book.pdf

-> Request sent: POST /files/basic/api/community/00f04081-f000-4752-bd88-8b73d281fb19/introspection Content-Type: binary/octet-stream X-Update-Nonce:<Nonce> Slug:TMap_Next_Book.pdf Filename: /Users/Downloads/TMap_Next_Book.pdf

当我上传到MYFILE,做工精细
- >请求已发送:

When I upload to myfile, works fine -> request sent:

POST https://greenhouse.lotus.com/files/basic/api/myuserlibrary/feed
X-更新-杜撰:其中;随机数&GT;
弹头:测试restore2
内容类型:应用程序/二进制
文件名:/Users/Downloads/client-error-log.zip

我试过的游乐场,而不是有据可查的那部分,所以至今没有成功。

I tried the Playground, but not well documented for that part, so so far no success.

你们中的任何人能够做到这一点,并能够分享的解决方案?

Any of you were able to do that, and would be able to share the solution?

感谢。

推荐答案

理所当然这个文件应该被称为与IBM联系社区工作的文件
<一href=\"http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Creating_community_files_ic50&content=apicontent\" rel=\"nofollow\">http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Creating_community_files_ic50&content=apicontent

Rightfully this document should be called working with IBM Connections Community Files http://www-10.lotus.com/ldd/lcwiki.nsf/xpAPIViewer.xsp?lookupName=IBM+Connections+5.0+API+Documentation#action=openDocument&res_title=Creating_community_files_ic50&content=apicontent

内省端点应该叫了社区收集文档进

The introspection endpoint should be called to get the "community collection document feed"

它看起来并不像你有哪些是必需的URL参数。您应该使用URL用GET /files/basic/api/community/3a246a15-b4d6-44e1-a01d-1c3d89f1f9a4/introspection?communityUuid=3a246a15-b4d6-44e1-a01d-1c3d89f1f9a4

it doesn't look like you have the URL parameter which is required. You should use the URL with a GET /files/basic/api/community/3a246a15-b4d6-44e1-a01d-1c3d89f1f9a4/introspection?communityUuid=3a246a15-b4d6-44e1-a01d-1c3d89f1f9a4

然后,你再找找
 
社区集合文档进纸
/

您会然后发布文件中的href --- <一href=\"https://greenhouse.lotus.com/files/basic/api/collection/e78ba00e-cee6-460f-a9ee-0350bf344e0b/feed\" rel=\"nofollow\">https://greenhouse.lotus.com/files/basic/api/collection/e78ba00e-cee6-460f-a9ee-0350bf344e0b/feed

You'll then POST your file to the href --- https://greenhouse.lotus.com/files/basic/api/collection/e78ba00e-cee6-460f-a9ee-0350bf344e0b/feed

我已经要求球队改变页面的标题。

I've asked the team to change the title of the page.

这篇关于将文件添加到编程的IBM Connections社区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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