active_campaign_wrapper 0.1.0 → 0.2.0
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 +4 -4
- data/README.md +11 -11
- data/active_campaign_wrapper.gemspec +2 -2
- data/lib/active_campaign_wrapper/version.rb +1 -1
- metadata +16 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6670b3e913d7638fe9ec860acc02e66c85a0de42ff47fe94cb2b0d2e4c6aec1a
|
4
|
+
data.tar.gz: 8ff5a1d9df989e255171381dd0fbece95e0b428d7785dd298fe593af8e0d1eea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0bf62f43cadfb38748772ea19a9646d00fe31f3a88ebda994752385349fe1080f1b427dee53e3e850ec3da9d80bd638caa8aaae9fd6bf184f73583b409f65de
|
7
|
+
data.tar.gz: 2a62220f96141a83e332d041d002024ffd97d8a092edbe6ca565d9fb54ad163b9fcbb94ad7a0e854ec169e0a258f97c0f54db47176e513361392f2c4cb8a3faa
|
data/README.md
CHANGED
@@ -30,14 +30,14 @@ Or install it yourself as:
|
|
30
30
|
* [Initialize](#initialize)
|
31
31
|
* [Tags](#tags)
|
32
32
|
* [Lists](#lists)
|
33
|
-
* [Contacts](#
|
33
|
+
* [Contacts](#contacts)
|
34
34
|
* [Contact Tags](#contact-tags)
|
35
35
|
* [Contact Automations](#contact-automations)
|
36
36
|
* [Contact Score Values](#contact-score-values)
|
37
|
+
* [Email Activities](#email-activities)
|
37
38
|
* [Custom Fields](#custom-fields)
|
38
39
|
* [Custom Field Options](#custom-field-options)
|
39
40
|
* [Custom Field Values](#custom-field-values)
|
40
|
-
* [Email Activities](#email-activities)
|
41
41
|
|
42
42
|
|
43
43
|
<a name="initialize"/>
|
@@ -313,7 +313,7 @@ client.contacts.bulk_import({
|
|
313
313
|
- params (array of objects): A list of parameters to include in the callback request. Add each parameter in the form of a key-value pair. For a GET request, each parameter will be appended to the end of the URL in a query string. For a POST request, parameters will be included in the body of the request.
|
314
314
|
- headers (array of objects): A list of headers to include in the callback request. Add each header in the form of a key-value pair.
|
315
315
|
|
316
|
-
<a name="
|
316
|
+
<a name="contact-tags"/>
|
317
317
|
|
318
318
|
### Contact Tags - [Api Reference](https://developers.activecampaign.com/reference#contact-tags)
|
319
319
|
|
@@ -346,7 +346,7 @@ client.contact_tags.find(contact_tag_id)
|
|
346
346
|
```ruby
|
347
347
|
client.contact_tags.delete(contact_tag_id)
|
348
348
|
```
|
349
|
-
<a name="
|
349
|
+
<a name="contact-automations"/>
|
350
350
|
|
351
351
|
### Contact Automations - [Api Reference](https://developers.activecampaign.com/reference#list-all-contactautomations-for-contact)
|
352
352
|
|
@@ -356,7 +356,7 @@ client.contact_tags.delete(contact_tag_id)
|
|
356
356
|
client.contact_automations.all(contact_id)
|
357
357
|
```
|
358
358
|
|
359
|
-
<a name="
|
359
|
+
<a name="contact-score-values"/>
|
360
360
|
|
361
361
|
### Contact Score Values - [Api Reference](https://developers.activecampaign.com/reference#list-all-contactautomations-for-contact)
|
362
362
|
|
@@ -366,7 +366,7 @@ client.contact_automations.all(contact_id)
|
|
366
366
|
client.contact_score_values.all(contact_id)
|
367
367
|
```
|
368
368
|
|
369
|
-
<a name="
|
369
|
+
<a name="email-activities"/>
|
370
370
|
|
371
371
|
### Email Activities - [Api Reference](https://developers.activecampaign.com/reference#email-emailactivities)
|
372
372
|
|
@@ -380,7 +380,7 @@ client.email_activities.all
|
|
380
380
|
- filters[subscriberid] (integer): Set this parameter to return only email activities belonging to a given subscriber.
|
381
381
|
- filters[dealId] (integer): Set this parameter to return only email activities belonging to a given deal.
|
382
382
|
|
383
|
-
<a name="
|
383
|
+
<a name="custom-fields"/>
|
384
384
|
|
385
385
|
### Custom Fields - [Api Reference](https://developers.activecampaign.com/reference#fields)
|
386
386
|
|
@@ -438,7 +438,7 @@ client.custom_fields.all
|
|
438
438
|
**QUERY PARAMS** (Optional)
|
439
439
|
- limit (integer): The number of fields returned per request.
|
440
440
|
|
441
|
-
<a name="
|
441
|
+
<a name="custom-field-options"/>
|
442
442
|
|
443
443
|
### Custom Fields Options - [Api Reference](https://developers.activecampaign.com/reference#create-custom-field-options)
|
444
444
|
|
@@ -478,7 +478,7 @@ client.custom_field_options.find(field_option_id)
|
|
478
478
|
client.custom_field_options.delete(field_option_id)
|
479
479
|
```
|
480
480
|
|
481
|
-
<a name="
|
481
|
+
<a name="custom-field-values"/>
|
482
482
|
|
483
483
|
### Custom Fields Values - [Api Reference](https://developers.activecampaign.com/reference#fieldvalues)
|
484
484
|
|
@@ -489,14 +489,14 @@ client.custom_field_values.create({
|
|
489
489
|
contact: contact_id,
|
490
490
|
field: field_id,
|
491
491
|
value: value
|
492
|
-
},
|
492
|
+
}, use_defaults: true)
|
493
493
|
```
|
494
494
|
|
495
495
|
**BODY PARAMS**
|
496
496
|
- contact* (string/integer): ID of the contact whose field value you're updating
|
497
497
|
- field* (string/integer): ID of the custom field whose value you're updating for the contact
|
498
498
|
- value* (string): Value for the field that you're updating. For multi-select options this needs to be in the format of ||option1||option2||
|
499
|
-
-
|
499
|
+
- use_defaults: If true, this will populate the missing required fields for this contact with default values
|
500
500
|
|
501
501
|
#### Retrieve a custom field value
|
502
502
|
|
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
|
32
|
-
spec.add_dependency 'activesupport', '>=
|
33
|
-
spec.add_dependency 'httparty', '>= 0.14'
|
32
|
+
spec.add_dependency 'activesupport', '>= 4.0', '< 8.0'
|
33
|
+
spec.add_dependency 'httparty', '>= 0.14', '< 0.19'
|
34
34
|
|
35
35
|
spec.add_development_dependency 'bundler', '~> 2.1.4'
|
36
36
|
spec.add_development_dependency 'codecov', '~> 0.1'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_campaign_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anmol Yousaf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '4.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: '4.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: httparty
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,6 +37,9 @@ dependencies:
|
|
31
37
|
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: '0.14'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.19'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +47,9 @@ dependencies:
|
|
38
47
|
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
49
|
version: '0.14'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.19'
|
41
53
|
- !ruby/object:Gem::Dependency
|
42
54
|
name: bundler
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|