Class: VerizonApi::Api

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/verizon_api/api.rb

Direct Known Subclasses

Waf

Constant Summary collapse

MEDIA_TYPES =
{:flash_media_streaming => 2, :http_large_object => 3, :http_small_object => 8, :application_delivery_network => 14}

Instance Method Summary collapse

Constructor Details

#initialize(account_id = VerizonApi::Config['account_id'], api_token = VerizonApi::Config['api_token']) ⇒ Api

Returns a new instance of Api.



16
17
18
19
# File 'lib/verizon_api/api.rb', line 16

def initialize( = VerizonApi::Config['account_id'], api_token = VerizonApi::Config['api_token'])
  self.class.base_uri "https://api.edgecast.com/v2/mcc/customers/#{account_id}"
  self.class.default_options[:headers]['Authorization'] = "TOK:#{api_token}"
end