Vimeo PHP 上传目录 [英] Vimeo PHP Upload Directory

查看:30
本文介绍了Vimeo PHP 上传目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了一周中最好的时间来让我的大脑运转起来,我刚刚得出的结论是这超出了我的范围.我知道这是一个相当大的问题,但我就是想不通.:(

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(我说受保护是因为脚本本身无法从网络访问)并通过 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,我不知道如何获取这两个.我发现它很混乱,不确定我是否可以根据我的要求调整它.相反,我在谷歌上搜索并找到了这篇关于将文件从 youtube 传输到 vimeo 的博客文章 - http://mclear.co.uk/2011/05/27/transfer-videos-from-youtube-to-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 将文件发送到网络服务器目录 - 工作

Php 脚本读取文件的 ID3 并将其上传到 vimeo - [ID3 Extractor working -Vimeo uploader not working]

Vimeo 响应上传位置到脚本,然后连接到我们的 mysql 服务器以添加记录 - 不工作但一旦上传器工作就可以直接实施

非常感谢您提供的任何帮助.理查德

Thank you so much in advance for any help you can give. Richard

推荐答案

我在这方面取得了一些进展,使用我制作的 php将 Youtube 转移到 Vimeo 工具"

文章底部的下载将使您使用 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

请不要联系我,因为我不支持这段代码,它只是被黑客攻击在一起:)

Please don't contact me RE this I'm not supporting this code it was just hacked together :)

这篇关于Vimeo PHP 上传目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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