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, = {}) connection.post("sequences/#{sequence_id}/subscribe") do |f| f.params['email'] = email f.params['first_name'] = [:first_name] f.params['fields'] = [:fields] f.params['tags'] = [:tags] end end |
#sequences ⇒ Object
4 5 6 |
# File 'lib/convertkit/client/sequences.rb', line 4 def sequences connection.get("sequences") end |