emarsys-api 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emarsys/api/internal.rb +5 -0
- data/lib/emarsys/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ff4536aad0d125c02062e75acbdc634921b2fd
|
4
|
+
data.tar.gz: 0a3e36c655871a11f7e9e8cf901aa8bda28c5338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 847e9383613fe793e8c17d31fe1faadb1f30a520835363f29909dea11e9f2513de00b18fee06fe30c078384947efcbb1bdd889b73aea7b305285c832730aa5ec
|
7
|
+
data.tar.gz: 5deb2ff9b7fec0843a2d3b565a123ec9a13d1825f484f879a18d33dcd0775d33c65a2b8811d4090df666bf7c50074009a9ee97ba3539b73cd17890ebe038f1dd
|
data/lib/emarsys/api/internal.rb
CHANGED
@@ -22,6 +22,11 @@ module Emarsys
|
|
22
22
|
client.post('field', params.to_json, headers).tap { |response| validate_response!(response) }.body['data']
|
23
23
|
end
|
24
24
|
|
25
|
+
def field_delete(field_id)
|
26
|
+
headers = { 'Content-Type' => 'application/json' }
|
27
|
+
url = "field/#{field_id}/delete"
|
28
|
+
client.delete(url, nil, headers).tap { |response| validate_response!(response) }.body['data']
|
29
|
+
end
|
25
30
|
|
26
31
|
private
|
27
32
|
|
data/lib/emarsys/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emarsys-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Istvan Demeter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: escher-keypool
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.6.
|
184
|
+
rubygems_version: 2.6.14
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Ruby client to make it easier to use the API of emarsys B2C MC
|