class Iterable::Channels

Interact with /channels API endpoints

@example 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)

Public Instance Methods

all() click to toggle source

Get all channels

@return [Iterable::Response] A response object

# File lib/iterable/channels.rb, line 20
def all
  Iterable.request(conf, '/channels').get
end