Class: Appydave::Tools::YouTubeManager::YouTubeBase

Inherits:
Object
  • Object
show all
Defined in:
lib/appydave/tools/youtube_manager/youtube_base.rb

Overview

Base class for YouTube API management

Direct Known Subclasses

GetVideo, UpdateVideo

Instance Method Summary collapse

Constructor Details

#initializeYouTubeBase

Returns a new instance of YouTubeBase.



8
9
10
11
12
# File 'lib/appydave/tools/youtube_manager/youtube_base.rb', line 8

def initialize
  @service = Google::Apis::YoutubeV3::YouTubeService.new
  @service.client_options.application_name = 'YouTube Video Manager'
  @service.authorization = Authorization.authorize
end