active_campaign_crm 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3669481809ba5f04d81fc3964c2e92eb8fdc58d9f399534fc4a92bbbf8181d7c
4
- data.tar.gz: 51af60ef17e611896ac61a96fbe741e54b6d1ce639c1968fe1a78fa974c61ba1
3
+ metadata.gz: 05722c055f6828425dd275a88aa81dc59dbcae065f14087cac6fc833dcbaca46
4
+ data.tar.gz: 854c008a6d7d926e91cc512929750c6702e18403be070e83274a74803f4565fc
5
5
  SHA512:
6
- metadata.gz: f5d81a854e9d01cc402242165c1767d5f333870ca89650a1e9305dad6638754a6bbca667df4a55d45ccff10e097ad73f727303e1f3dd3c7cd2107e130363cc23
7
- data.tar.gz: 67dba6d05a8db13c5ef08149f83ea5f173c0b4e3feed741fc3976b1ef4caea57b4b5a98b40b17b651a0a891260bd9dd2f7682e88446f8a1ca25f5ae7d525cd8c
6
+ metadata.gz: 6e2d9b2533b8b86d9ca86c7689b8006f7378b64172f8f585e6e44b0647e51c9731bb0b2f7a20b95d7955c3d65a25819129cbed3f1c70f850a8931921b781c9f1
7
+ data.tar.gz: c70b98a881ad80e192a861c07d4fd4fcbba12006a4741136ead4c9081940ada0162b77eaebbd919f0b487c428d2dbc0ed735a283208490dd2e79474da430e025
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active_campaign_crm (0.1.0)
4
+ active_campaign_crm (0.1.1)
5
5
  faraday (~> 0.15)
6
6
 
7
7
  GEM
@@ -12,7 +12,8 @@ module ActiveCampaignCrm
12
12
  end
13
13
 
14
14
  def create_contact_field(properties)
15
- @connection.post('fields', contact_field_body(properties))
15
+ response = @connection.post('fields', contact_field_body(properties))
16
+ response['field']
16
17
  end
17
18
 
18
19
  def contact_field_body(properties)
@@ -20,11 +21,12 @@ module ActiveCampaignCrm
20
21
  end
21
22
 
22
23
  def update_contact_field(id, properties)
23
- @connection.put("fields/#{id}", contact_field_body(properties))
24
+ response = @connection.put("fields/#{id}", contact_field_body(properties))
25
+ response['field']
24
26
  end
25
27
 
26
28
  def delete_contact_field(id)
27
- @connection.delete("fields/#{id}")
29
+ response = @connection.delete("fields/#{id}")
28
30
  end
29
31
  end
30
32
  end
@@ -12,15 +12,18 @@ module ActiveCampaignCrm
12
12
  end
13
13
 
14
14
  def create_contact(fields)
15
- @connection.post('contacts', contact_body(fields))
15
+ response = @connection.post('contacts', contact_body(fields))
16
+ response['contact']
16
17
  end
17
18
 
18
19
  def sync_contact(fields)
19
- @connection.post('contact/sync', contact_body(fields))
20
+ response = @connection.post('contact/sync', contact_body(fields))
21
+ response['contact']
20
22
  end
21
23
 
22
24
  def update_contact(id, fields)
23
- @connection.put("contacts/#{id}", contact_body(fields))
25
+ response = @connection.put("contacts/#{id}", contact_body(fields))
26
+ response['contact']
24
27
  end
25
28
 
26
29
  def delete_contact(id)
@@ -12,11 +12,13 @@ module ActiveCampaignCrm
12
12
  end
13
13
 
14
14
  def create_custom_field_value(properties)
15
- @connection.post('fieldValues', custom_field_value_body(properties))
15
+ response = @connection.post('fieldValues', custom_field_value_body(properties))
16
+ response['fieldValue']
16
17
  end
17
18
 
18
19
  def update_custom_field_value(id, properties)
19
- @connection.put("fieldValues/#{id}", custom_field_value_body(properties))
20
+ response = @connection.put("fieldValues/#{id}", custom_field_value_body(properties))
21
+ response['fieldValue']
20
22
  end
21
23
 
22
24
  def delete_custom_field_value(id)
@@ -12,11 +12,13 @@ module ActiveCampaignCrm
12
12
  end
13
13
 
14
14
  def create_organization(fields)
15
- @connection.post('organizations', organization_body(fields))
15
+ response = @connection.post('organizations', organization_body(fields))
16
+ response['organization']
16
17
  end
17
18
 
18
19
  def update_organization(id, fields)
19
- @connection.put("organizations/#{id}", organization_body(fields))
20
+ response = @connection.put("organizations/#{id}", organization_body(fields))
21
+ response['organization']
20
22
  end
21
23
 
22
24
  def delete_organization(id)
@@ -12,15 +12,18 @@ module ActiveCampaignCrm
12
12
  end
13
13
 
14
14
  def create_tag(fields)
15
- @connection.post('tags', tag_body(fields))
15
+ response = @connection.post('tags', tag_body(fields))
16
+ response['tag']
16
17
  end
17
18
 
18
19
  def add_tag_to_contact(contact, tag)
19
- @connection.post('contactTags', contact_link_tag_body(contact, tag))
20
+ response = @connection.post('contactTags', contact_link_tag_body(contact, tag))
21
+ response['contactTag']
20
22
  end
21
23
 
22
24
  def update_tag(id, fields)
23
- @connection.put("tags/#{id}", tag_body(fields))
25
+ response = @connection.put("tags/#{id}", tag_body(fields))
26
+ response['tag']
24
27
  end
25
28
 
26
29
  def delete_tag(id)
@@ -1,3 +1,3 @@
1
1
  module ActiveCampaignCrm
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_campaign_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuno Correia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-04 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday