Method: Viddler::Client#initialize

Defined in:
lib/viddler/client.rb

#initialize(api_key) ⇒ Client

Sets the API key and sessionid if needed for the given arguments

api_key - The String API Key from Viddler

Examples

# Initialize a client with just an API key
viddler = Viddler::Client.new 'your api key'

Returns an instance of Viddler::Client



27
28
29
# File 'lib/viddler/client.rb', line 27

def initialize(api_key)
  self.api_key = api_key
end