Class: Zencoder::Account
- Inherits:
-
Base
- Object
- Base
- Zencoder::Account
show all
- Defined in:
- lib/zencoder/account.rb
Class Method Summary
collapse
Methods inherited from Base
api_key, base_url, decode, #decode, #encode, encode
Class Method Details
.create(params = {}, options = {}) ⇒ Object
4
5
6
|
# File 'lib/zencoder/account.rb', line 4
def self.create(params={}, options={})
HTTP.post("#{options[:base_url] || base_url}/account", encode(params, options[:format]), options)
end
|
.details(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/zencoder/account.rb', line 8
def self.details(options={})
params = {:api_key => options.delete(:api_key) || api_key}
HTTP.get("#{options[:base_url] || base_url}/account", merge_params(options, params))
end
|
.integration(options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/zencoder/account.rb', line 13
def self.integration(options={})
params = {:api_key => options.delete(:api_key) || api_key}
HTTP.get("#{options[:base_url] || base_url}/account/integration", merge_params(options, params))
end
|
.live(options = {}) ⇒ Object
18
19
20
21
|
# File 'lib/zencoder/account.rb', line 18
def self.live(options={})
params = {:api_key => options.delete(:api_key) || api_key}
HTTP.get("#{options[:base_url] || base_url}/account/live", merge_params(options, params))
end
|