LoginSignup
0
1

More than 5 years have passed since last update.

Ruby on Rails で Vimeoのコレクション(チャンネルかアルバム)にあるビデオ全てのVideo idを取り出す方法

Posted at

Ruby on Rails で Vimeoのコレクション(チャンネルかアルバム)に登録されているビデオ全てのVideo idを取り出す方法を教えていただけないでしょうか?

動画サイト(YoutubeとVime)を利用して、Youtubeはプレイリストから、Vimeoはコレクションからそれぞれ登録されているVideo idを引っ張ってきて、rails上で動画を再生したいと思っています。

YoutubeのプレイリストからVideo idを取り出す方法はytというgemを使って以下のコードで取り出すことができました。

require 'yt'

Yt.configuration.api_key = "API_key"

playlist = Yt::Playlist.new id: 'PLrVMpe5AbZT5EN_3MEp5Xsc1mvWyS0OBn'

playlist.playlist_items.each do |item|
    puts item.video_id 

end

ただ、Vimeoで取り出す方法がわかりません。

よろしくお願いします!

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1