问题描述
我花了一个星期霍霍我的大脑得到这个工作的这个最好的部分和我刚刚得出的结论,这是我的范围。我知道这是一个相当大的要求,但我只是不明白。 (
I have spent this best part of a week rattling my brain to get this working and I've just come to the conclusion that this is out of my scope. I know this is a rather large ask but I just can't figure it out. :(
无论如何,我想通过一个受保护的PHP脚本上传我的网络服务器到Vimeo目录中的一些文件(我说的保护,因为剧本本身不会从Web访问),并通过一个cron作业运行该脚本。该脚本将只上传到我的帐户。
Anyway, I am trying to upload some files in a directory on my webserver to Vimeo through a protected php script (I say protected because the script itself will not be accessible from the web) and have that script run via a cron job. The script will only upload to my account.
据正从VIMEO消费者密钥和消费者秘密我已经得到了。
I have gotten as far as getting a consumer key and consumer secret from vimeo.
我一直在试图使用他们的API文档演示但一直请求组oauth_token和oauth_token_secret,这两个我不知道如何获得。我发现它相当混乱和不确定,如果我能适应它为我的要求。相反,我用Google搜索,发现这个博客帖子从YouTube传送文件到Vimeo - 的 - 我想我可以用它作为构建块但我已经打了一个死胡同这里也。
I have been attempting to use their documented API demo but that keeps requesting an oauth_token and oauth_token_secret, both of which I don't know how to obtain. I found it quite confusing and unsure if I could adapt it for my requirements. Instead, I googled and found this blog post about transfering files from youtube to vimeo - http://mclear.co.uk/2011/05/27/transfer-videos-from-youtube-to-vimeo/ - I thought I could use it as a building block but I've hit a dead end here also.
要解释什么,我试图达到的满量程:
To explain the full scale of what I'm trying to achieve:
视频文件原始计算机上创建 - 工作
用户增加了ID3标签的文件,并删除它在监视文件夹 - 工作
本地服务器通过FTP发送文件到web服务器的目录 - 工作
PHP脚本读取ID3的文件,并上传到Vimeo - [ID3提取工作不工作-Vimeo上传]
Vimeo的与上传位置脚本,然后连接到我们的MySQL服务器添加记录响应 - 不工作,但直接实现一次上传的作品
感谢你这么多提前任何帮助,您可以给。
理查德
Thank you so much in advance for any help you can give.Richard
推荐答案
的
下载在文章底部将让你上传瓦特/ PHP
The download at the bottom of the article will get you uploading w/ PHP
该CLI工具现已上市,配有视频教程如何使用它。
The CLI tool is now available and comes with a video tutorial for how to use it.
感谢@TomNomNom
Credit to @TomNomNom
这篇关于Vimeo的PHP上传目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!