Scribd API - 这可能吗?
Scribd API:http://www.scribd.com/developers
对于那些了解的人Scribd,用过它或者可以看看上面的API。
谁能告诉我是否可以将文档从我的网站直接上传到 scribd?
我问这个问题是因为从 API(PHP 实现)来看,我似乎必须首先要求我的用户将文件上传到我的服务器,然后我从那里上传到 scribd。 就像这个例子:
$file = '../testfile.txt';
//a reference to the file in reference to the current working directory.
$data = $scribd->upload($file, $doc_type, $access, $rev_id);
谢谢大家
Scribd API: http://www.scribd.com/developers
For those of you that are aware of Scribd, used it or can take a look at the API above.
Can anyone tell me if it is possible to upload documents from my site straight to scribd?
I ask because from the API (PHP Implementation) it seems that I have to first ask my users to upload the files to my server and from there I hjave to upload to scribd. Like this example:
$file = '../testfile.txt';
//a reference to the file in reference to the current working directory.
$data = $scribd->upload($file, $doc_type, $access, $rev_id);
Thanks all
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解正确的话,您希望用户上传文件,然后将其直接上传到 scribd,而不存储在您的服务器上。
如果是这种情况,应该可以像 php 文件上传一样处理它,只不过只是将文件传递给 scribd 而不是存储它。
通过典型的上传表单上传后,将其传递:
这只是用户刚刚上传的临时文件的路径
If I understand correctly, you want users to upload a file, and then upload it directly to scribd without ever storing on your server.
If this is the case, it should be possible to handle it similar to a php file upload, except simply pass the file along to scribd rather than storing it.
After uploading through a typical upload form, pass it along:
This is simply the path of the temporary file that the user just uploaded