active_campaign_crm 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/active_campaign_crm/client/contact_fields.rb +5 -3
- data/lib/active_campaign_crm/client/contacts.rb +6 -3
- data/lib/active_campaign_crm/client/custom_field_values.rb +4 -2
- data/lib/active_campaign_crm/client/organizations.rb +4 -2
- data/lib/active_campaign_crm/client/tags.rb +6 -3
- data/lib/active_campaign_crm/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: 05722c055f6828425dd275a88aa81dc59dbcae065f14087cac6fc833dcbaca46
|
4
|
+
data.tar.gz: 854c008a6d7d926e91cc512929750c6702e18403be070e83274a74803f4565fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e2d9b2533b8b86d9ca86c7689b8006f7378b64172f8f585e6e44b0647e51c9731bb0b2f7a20b95d7955c3d65a25819129cbed3f1c70f850a8931921b781c9f1
|
7
|
+
data.tar.gz: c70b98a881ad80e192a861c07d4fd4fcbba12006a4741136ead4c9081940ada0162b77eaebbd919f0b487c428d2dbc0ed735a283208490dd2e79474da430e025
|
data/Gemfile.lock
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|