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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c3c49b9fde89101939ce659ea756833b112502ba0924f27dc5ffff6ae0f227b
4
- data.tar.gz: 990e2227343e8c42ca8580f7a8d5f82505f4f909cc74034599bc339071f105ce
3
+ metadata.gz: f6b31fb0624f540f9dfaa1b85082f9fa64b96ce07bbd9a7e7a95f7ec4b313f3f
4
+ data.tar.gz: ee9a22950e92e99f1b9875db118adbbb6747b7be16ce989a748735b81c16ff1a
5
5
  SHA512:
6
- metadata.gz: f9dbbdf10cd61353102c8a50ccf280c2bf7ed4dce94aa699d8aca79fe163b5de2fcfd9a6209a1d6cf0b012ecd52de989a18b06d40b484bc214809e863404ffcc
7
- data.tar.gz: e7baca13ad01c517bf194278e545497741a8ee84c779c4bd5522ca9da6155b0a6cd9bbb5d3c95226910137b4cf807351a3c7ae90aad712a97c55869fab5ba1d5
6
+ metadata.gz: 5970d375b098415f1ba04dada9f97023ecaa5e6ac2e2602298bc3c6861cc0aaf2062dc80182fb2b99b0bf3e0e3e87a7141094986ce7899fb91796d14748d48c5
7
+ data.tar.gz: 4117797998f7991c6b501e8d15b0d8c694e1738a90288c75dce695a7b4753d732ed7edfbf1878e44bf2ce429e1de09db47ce1a6b05cea438856a097718fffa23
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mixmax (0.1.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.2018.0812)
16
+ mime-types-data (3.2019.0331)
17
17
  multi_xml (0.6.0)
18
- rake (10.4.2)
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.2)
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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  class Mixmax
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-04-05 00:00:00.000000000 Z
11
+ date: 2019-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler