Class: Iterable::Channels

Inherits:
ApiResource show all
Defined in:
lib/iterable/channels.rb

Overview

Interact with /channels API endpoints

Examples:

Creating channels endpoint object

# With default config
campaigns = Iterable::Channels.new
campaigns.all

# With custom config
conf = Iterable::Config.new(token: 'new-token')
campaigns = Iterable::Channels.new(config)

Instance Attribute Summary

Attributes inherited from ApiResource

#conf

Instance Method Summary collapse

Methods inherited from ApiResource

#default_config, default_config, #initialize

Constructor Details

This class inherits a constructor from Iterable::ApiResource

Instance Method Details

#allIterable::Response

Get all channels

Returns:



20
21
22
# File 'lib/iterable/channels.rb', line 20

def all
  Iterable.request(conf, '/channels').get
end