Sha256: 98bc7e14012a1ed36f065d39f308e4eb1232a2ebfe55da4a0726e4236a8468f3

Contents?: true

Size: 708 Bytes

Versions: 3

Compression:

Stored size: 708 Bytes

Contents

module Sendcloud

  module MailList

    extend self

    def create(params)
      Sendcloud.post('list.create', params)
    end

    def get(params)
      Sendcloud.get('list.get', params)
    end

    def delete(params)
      Sendcloud.get('list.delete', params)
    end

    def update(params)
      Sendcloud.post('list.update', params)
    end

    def member_add(params)
      Sendcloud.post('list_member.add', params)
    end

    def member_delete(params)
      Sendcloud.post('list_member.delete', params)
    end

    def member_get(params)
      Sendcloud.get('list_member.get', params)
    end

    def member_update(params)
      Sendcloud.post('list_member.update', params)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sendcloud-0.2.1 lib/sendcloud/mail_list.rb
sendcloud-0.2.0 lib/sendcloud/mail_list.rb
sendcloud-0.1.0 lib/sendcloud/mail_list.rb