2013-06-28 31 views

回答

1

上得到时POST这个值这个英语是很难读,但我要我最好的拍摄。我也没有pandastream的经验,但API看起来很简单。它看起来像pandastream需要你先上传视频文件。然后找到一个ID。

。在API文档:https://github.com/pandastream/panda_gem,它看起来像

encodings = Panda::Video.find("1234").encodings 

意味着你必须有第一编码它。他们只是通过Web API将属性发送给您。在查询属性后,您可以对其进行任何操作,例如将其插入数据库中。

您甚至可以遍历帐户中的所有视频并获取视频持续时间并批量插入它们。

videos = Panda::Video.all 
# loop through videos as |upload| 
# find video as video 
# insert into database upload.id and video.attributes["duration"] 

祝你好运!