Using rails to get member groups from kdan cloud.
Using gem Sequel to access sendy mysql db
To create list
To add subscriber into list
To prevent unsubscribed, bounced, complaint emails into the list
To delete list
has_many :pack_subscriptions, class: 'KdanPackSubscriptionStatus'
has_many :products
has_many :subscribed_kdans, class: 'KdanPackSubscriptionStatus'
{
name:string,
code:string
}
# C365
Pack.create(name: 'Creativity 365', code: 'C365')
Pack.create(name: 'Creativity 365 Teacher & Student Offer', code: 'C365TS')
Pack.create(name: 'Creativity 365 Education', code: 'C365EDU')
Pack.create(name: 'Creativity 365 Business', code: 'C365BUS')
# D365
Pack.create(name: 'Document 365', code: 'D365')
Pack.create(name: 'Document 365 Volumen Licensing', code: 'D365VL')
# Cloud
Pack.create(name: 'Cloud Pack for Animation Desk', code: 'cloud_pack_ad')
Pack.create(name: 'Cloud Pack for Noteledge', code: 'cloud_pack_nl')
Pack.create(name: 'Cloud Pack for PDF', code: 'cloud_pack_pdf')
Pack.create(name: 'Cloud Pack for Write-on', code: 'cloud_pack_wo')
Pack.create(name: 'Cloud Pack for Pocket Scanner', code: 'cloud_pack_scan')
# Deluxe
Pack.create(name: 'Deluxe Pack for Animation Desk', code: 'deluxe_pack_Ad')
Pack.create(name: 'Deluxe Pack for Noteledge', code: 'deluxe_pack_nl')
Pack.create(name: 'Deluxe Pack for PDF', code: 'deluxe_pack_pdf')
Pack.create(name: 'Deluxe Pack for Write-on', code: 'deluxe_pack_wo')
Pack.create(name: 'Deluxe Pack for Pocket Scanner', code: 'deluxe_pack_scan')
belongs_to :pack
belongs_to :kdan
belongs_to :pack
{
kdan_id:integer,
pack_id:integer,
stauts:[free_trial, active, expired, refund, cancel]
}
{
description:string,
sendy_list_long_id:string,
sendy_list_short_id:integer,
select_criteria:json,
active_count:integer,
unsubscribed_count:integer,
bounced_count:integer,
bounced_soft_count:integer,
complaint_count:integer,
sendy_delete_at:datetime,
}
{
email:string,
reason: [unsubscribed, bounced, bounced_soft, complaint]
}
Going to Build up Sendy list [Go]
List Content:
List Name: [ZCR] my list ver. B
List Count: 100
List Content: