Module: Convertkit::Client::Sequences

Included in:
Convertkit::Client
Defined in:
lib/convertkit/client/sequences.rb

Instance Method Summary collapse

Instance Method Details

#add_subscriber_to_sequence(sequence_id, email, options = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/convertkit/client/sequences.rb', line 8

def add_subscriber_to_sequence(sequence_id, email, options = {})
  connection.post("sequences/#{sequence_id}/subscribe") do |f|
    f.params['email'] = email
    f.params['first_name'] = options[:first_name]
    f.params['fields'] = options[:fields]
    f.params['tags'] = options[:tags]
  end
end

#sequencesObject



4
5
6
# File 'lib/convertkit/client/sequences.rb', line 4

def sequences
  connection.get("sequences")
end