module Yt::Config

Provides methods to read and write global configuration settings.

A typical usage is to set the API keys retrieved from the {console.developers.google.com Google Developers Console}.

@example Set the API key for a server-only YouTube app:

Yt.configure do |config|
  config.api_key = 'ABCDEFGHIJ1234567890'
end

@example Set the API client id/secret for a web-client YouTube app:

Yt.configure do |config|
  config.client_id = 'ABCDEFGHIJ1234567890'
  config.client_secret = 'ABCDEFGHIJ1234567890'
end

Note that Yt.configure has precedence over values through with environment variables (see {Yt::Models::Configuration}).