Sha256: 7af29c20e82d92b53e4e7db1c69bda8e90ea0550e01a51d441ea576427cb6ee4
Contents?: true
Size: 986 Bytes
Versions: 2
Compression:
Stored size: 986 Bytes
Contents
module MailerLite module Clients # Get information about MailerLite Lists. # # You can official documentation at # https://docs.mailerlite.com/pages/lists module Lists def lists(options = {}) connection.get('lists/', options) end def list(id) connection.get("lists/#{id}/") end def create_list(name) connection.post('lists/', name: name) end def update_list(id, name) connection.post("lists/#{id}/", name: name) end def delete_list(id) connection.delete("lists/#{id}/") end def list_active_subscribers(id, options = {}) connection.get("lists/#{id}/active/", options) end def list_unsubscribed_subscribers(id, options = {}) connection.get("lists/#{id}/unsubscribed/", options) end def list_bounced_subscribers(id, options = {}) connection.get("lists/#{id}/bounced/", options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mailerlite-0.3.0 | lib/mailerlite/clients/lists.rb |
mailerlite-0.2.0 | lib/mailerlite/clients/lists.rb |