mixmax 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/mixmax.rb +8 -4
- data/lib/mixmax/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: f6b31fb0624f540f9dfaa1b85082f9fa64b96ce07bbd9a7e7a95f7ec4b313f3f
|
4
|
+
data.tar.gz: ee9a22950e92e99f1b9875db118adbbb6747b7be16ce989a748735b81c16ff1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5970d375b098415f1ba04dada9f97023ecaa5e6ac2e2602298bc3c6861cc0aaf2062dc80182fb2b99b0bf3e0e3e87a7141094986ce7899fb91796d14748d48c5
|
7
|
+
data.tar.gz: 4117797998f7991c6b501e8d15b0d8c694e1738a90288c75dce695a7b4753d732ed7edfbf1878e44bf2ce429e1de09db47ce1a6b05cea438856a097718fffa23
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mixmax (0.1.
|
4
|
+
mixmax (0.1.3)
|
5
5
|
httparty (~> 0.16.4)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,16 +13,16 @@ GEM
|
|
13
13
|
multi_xml (>= 0.5.2)
|
14
14
|
mime-types (3.2.2)
|
15
15
|
mime-types-data (~> 3.2015)
|
16
|
-
mime-types-data (3.
|
16
|
+
mime-types-data (3.2019.0331)
|
17
17
|
multi_xml (0.6.0)
|
18
|
-
rake (10.
|
18
|
+
rake (10.5.0)
|
19
19
|
rspec (3.8.0)
|
20
20
|
rspec-core (~> 3.8.0)
|
21
21
|
rspec-expectations (~> 3.8.0)
|
22
22
|
rspec-mocks (~> 3.8.0)
|
23
23
|
rspec-core (3.8.0)
|
24
24
|
rspec-support (~> 3.8.0)
|
25
|
-
rspec-expectations (3.8.
|
25
|
+
rspec-expectations (3.8.3)
|
26
26
|
diff-lcs (>= 1.2.0, < 2.0)
|
27
27
|
rspec-support (~> 3.8.0)
|
28
28
|
rspec-mocks (3.8.0)
|
data/lib/mixmax.rb
CHANGED
@@ -8,16 +8,20 @@ class Mixmax
|
|
8
8
|
@headers = { "X-API-Token" => api_key, "Content-Type" => "application/json"}
|
9
9
|
end
|
10
10
|
|
11
|
-
base_uri "api.mixmax.com"
|
11
|
+
base_uri "https://api.mixmax.com"
|
12
12
|
|
13
|
-
def sequences
|
14
|
-
self.class.get("/v1/sequences", headers: @headers).parsed_response["results"]
|
13
|
+
def sequences(query = {})
|
14
|
+
self.class.get("/v1/sequences", headers: @headers, query: query).parsed_response["results"]
|
15
|
+
end
|
16
|
+
|
17
|
+
def sequence(id)
|
18
|
+
self.class.get("/v1/sequences/#{id}", headers: @headers).parsed_response
|
15
19
|
end
|
16
20
|
|
17
21
|
def sequence_recipients(id)
|
18
22
|
self.class.get("/v1/sequences/#{id}/recipients", headers: @headers)
|
19
23
|
end
|
20
|
-
|
24
|
+
|
21
25
|
def add_to_sequence(id, recipients)
|
22
26
|
self.class.post("/v1/sequences/#{id}/recipients", headers: @headers, body: recipients)
|
23
27
|
end
|
data/lib/mixmax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixmax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Torres
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|