Module: Itrigga::AdminApiClient::Proxies::Api

Included in:
Itrigga::AdminApiClient
Defined in:
lib/itrigga/admin_api_client/proxies/api.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 6

def self.included(base)
  base.send("extend",self)
end

Instance Method Details

#get_channel_items(opts) ⇒ Object



27
28
29
30
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 27

def get_channel_items( opts )
  require_param( opts, :channel_id )
  make_api_call("channels/#{opts[:channel_id]}", opts )
end

#get_channels(opts) ⇒ Object



23
24
25
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 23

def get_channels(opts)
  make_api_call("channels", opts )
end

#get_item_details(opts) ⇒ Object



44
45
46
47
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 44

def get_item_details( opts )
  require_param( opts, :item_id )
  make_api_call("items/#{opts[:item_id]}", opts)
end

#get_item_tags(opts) ⇒ Object



36
37
38
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 36

def get_item_tags( opts )
  make_api_call('item_tags', opts)
end

#get_latest_items(opts) ⇒ Object



40
41
42
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 40

def get_latest_items( opts )
  make_api_call('items', opts)
end

#get_sources(opts) ⇒ Object



32
33
34
# File 'lib/itrigga/admin_api_client/proxies/api.rb', line 32

def get_sources( opts )
  make_api_call('sources', opts)
end