mailerlite 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/examples/campaigns.md +7 -0
- data/examples/groups.md +6 -0
- data/examples/segments.md +6 -0
- data/examples/subscribers.md +12 -0
- data/lib/mailerlite/clients/campaigns.rb +6 -2
- data/lib/mailerlite/clients/groups.rb +7 -2
- data/lib/mailerlite/clients/segments.rb +7 -2
- data/lib/mailerlite/clients/subscribers.rb +13 -0
- data/lib/mailerlite/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d8ec3996831a0bb8c319fb16ef3b2b75d6240f867295c526cd80d58ac62362d
|
4
|
+
data.tar.gz: 6508011451874fa5915283979cad2aa5f048a5b4f98e06c7d797e0d337e4087a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3096b6e2073d225eba40df4dfd77baed6b6fe0f969a0e5854e27ca284dfa8c52da8cbaa224b9029d15142e869399446ff8041a9d71f5615ab8fac9783cff9ed
|
7
|
+
data.tar.gz: d290bcc41abc81d5278a8111323f4425ccb31b66df3f010c5cf333973b493f68b3af0f259f4de96ad041694c241c010cf5f9224b6ca06c6bde424358e693623b
|
data/Gemfile
CHANGED
data/examples/campaigns.md
CHANGED
data/examples/groups.md
CHANGED
data/examples/segments.md
CHANGED
data/examples/subscribers.md
CHANGED
@@ -59,10 +59,14 @@ module MailerLite
|
|
59
59
|
#
|
60
60
|
# @param status [String] possible values: 'sent', 'outbox', 'draft'
|
61
61
|
# no value means 'sent'
|
62
|
+
# @param options [Hash] Options list. See more in MailerLite docs.
|
63
|
+
# @option options [Integer] :offset
|
64
|
+
# @option options [Integer] :limit
|
65
|
+
# @option options [String] :order asc or desc
|
62
66
|
#
|
63
67
|
# @return Response from API.
|
64
|
-
def campaigns_by_status(status)
|
65
|
-
connection.get("campaigns/#{status}")
|
68
|
+
def campaigns_by_status(status, options = {})
|
69
|
+
connection.get("campaigns/#{status}", options)
|
66
70
|
end
|
67
71
|
|
68
72
|
# Remove a campaign.
|
@@ -8,9 +8,14 @@ module MailerLite
|
|
8
8
|
#
|
9
9
|
# @see https://developers.mailerlite.com/v2/reference#groups
|
10
10
|
#
|
11
|
+
# @param options [Hash] Options list. See more in MailerLite docs.
|
12
|
+
# @option options [Integer] :offset
|
13
|
+
# @option options [Integer] :limit
|
14
|
+
# @option options [String] :filters
|
15
|
+
#
|
11
16
|
# @return [Array] Response from API.
|
12
|
-
def groups
|
13
|
-
connection.get('groups')
|
17
|
+
def groups(options = {})
|
18
|
+
connection.get('groups', options)
|
14
19
|
end
|
15
20
|
|
16
21
|
# Get single group by ID
|
@@ -8,9 +8,14 @@ module MailerLite
|
|
8
8
|
#
|
9
9
|
# @see https://developers.mailerlite.com/v2/reference#segments-1
|
10
10
|
#
|
11
|
+
# @param options [Hash] Options list. See more in MailerLite docs.
|
12
|
+
# @option options [Integer] :offset
|
13
|
+
# @option options [Integer] :limit
|
14
|
+
# @option options [String] :order asc or desc
|
15
|
+
#
|
11
16
|
# @return [Array] Response from API.
|
12
|
-
def segments
|
13
|
-
connection.get('segments')
|
17
|
+
def segments(options = {})
|
18
|
+
connection.get('segments', options)
|
14
19
|
end
|
15
20
|
end
|
16
21
|
end
|
@@ -4,6 +4,19 @@ module MailerLite
|
|
4
4
|
module Clients
|
5
5
|
# MailerLite Subscribers
|
6
6
|
module Subscribers
|
7
|
+
# Get subscribers
|
8
|
+
#
|
9
|
+
# @see https://developers.mailerlite.com/v2/reference#subscribers
|
10
|
+
#
|
11
|
+
# @param options [Hash] Options list. See more in MailerLite docs.
|
12
|
+
# @option options [Integer] :offset
|
13
|
+
# @option options [Integer] :limit
|
14
|
+
#
|
15
|
+
# @return [Hash] Response from API.
|
16
|
+
def subscribers(options = {})
|
17
|
+
connection.get('subscribers', options)
|
18
|
+
end
|
19
|
+
|
7
20
|
# Get single subscriber
|
8
21
|
#
|
9
22
|
# @see https://developers.mailerlite.com/v2/reference#single-subscriber
|
data/lib/mailerlite/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailerlite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justas Palumickas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|