Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 949 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 949 Bytes

The Youtube Ruby Gem

Build Status Dependency Status Code Climate Coverage Status

A Ruby interface to the Youtube API

Installation

gem 'youtube', github: 'octoly/youtube'

Usage

@yt = Youtube::Client.new(developer_key: 'youtube_api_key')

@video = @yt.video(id: 'fD1eRbq09yU')
@videos = @yt.video(id: ['fD1eRbq09yU', 'AVjvsgcBKrs'])

@channel = @yt.channel(id: 'UCVrPiUtl29kULN2HIAm244Q')
@channels = @yt.channel(id: ['UCMmADDDgI-dXaPGoIZ3qIsQ', 'UCVrPiUtl29kULN2HIAm244Q'])