ractive_campaign 0.1.2 → 0.1.3
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/README.md +3 -1
- data/lib/active_campaign/models/account_contact.rb +9 -0
- data/lib/active_campaign/models/campaign.rb +7 -0
- data/lib/active_campaign/models/contact_automation.rb +7 -0
- data/lib/active_campaign/models/contact_deal.rb +7 -0
- data/lib/active_campaign/models/custom_deal_field.rb +21 -0
- data/lib/active_campaign/models/custom_deal_field_value.rb +20 -0
- data/lib/active_campaign/models/deal.rb +17 -0
- data/lib/active_campaign/models/email_activity.rb +7 -0
- data/lib/active_campaign/models/field.rb +13 -0
- data/lib/active_campaign/models/field_value.rb +9 -0
- data/lib/active_campaign/models/pipeline.rb +18 -0
- data/lib/active_campaign/models/stage.rb +22 -0
- data/lib/active_campaign/models/task.rb +23 -0
- data/lib/active_campaign/models/task_outcome.rb +7 -0
- data/lib/active_campaign/models/task_type.rb +13 -0
- data/lib/active_campaign/models/user.rb +15 -0
- data/lib/active_campaign/version.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee344bdbd4025f17b5d53a9afbdd28358fc29ac2325b8ff3251add3ce096c816
|
4
|
+
data.tar.gz: 9774f6a2973cf153fcf68456eecec137e1d88001d4d0c0412f44cf7b69913df8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0907098764aaa108e6663ca26db45fa45a61b55ec992da65275399a5825adf7d571efbae76adbe96d623a93c73839e7488000465f2977114351d428eb33d39df'
|
7
|
+
data.tar.gz: b2fabe0ef19b4b116ef9eda3bcccc54c9d6cdc3cb4f4e70c72133f1d0584517ae097554e5d97489ff2b98327a3f5ffdecbf8490b5dd3e86380c7488ab70cfe60
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/ractive_campaign.svg)](https://badge.fury.io/rb/ractive_campaign) [![Maintainability](https://api.codeclimate.com/v1/badges/c23221fc334b63af9a07/maintainability)](https://codeclimate.com/github/wedsonlima/ractive_campaign/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/c23221fc334b63af9a07/test_coverage)](https://codeclimate.com/github/wedsonlima/ractive_campaign/test_coverage)
|
2
|
+
|
1
3
|
# RactiveCampaign
|
2
4
|
|
3
5
|
Simple wrapper for ActiveCampaign API v3
|
@@ -7,7 +9,7 @@ Simple wrapper for ActiveCampaign API v3
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
11
|
```ruby
|
10
|
-
gem "ractive_campaign"
|
12
|
+
gem "ractive_campaign", require: "active_campaign"
|
11
13
|
```
|
12
14
|
|
13
15
|
And then execute:
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class CustomDealField < Model # :nodoc:
|
5
|
+
define_attributes :fieldLabel,
|
6
|
+
:fieldType,
|
7
|
+
:fieldDefault,
|
8
|
+
:isFormVisible,
|
9
|
+
:displayOrder
|
10
|
+
|
11
|
+
class << self
|
12
|
+
def endpoint
|
13
|
+
"dealCustomFieldMeta"
|
14
|
+
end
|
15
|
+
|
16
|
+
def root_element
|
17
|
+
:dealCustomFieldMetum
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class CustomDealFieldValue < Model # :nodoc:
|
5
|
+
define_attributes :dealId,
|
6
|
+
:customFieldId,
|
7
|
+
:fieldValue,
|
8
|
+
:fieldCurrency
|
9
|
+
|
10
|
+
class << self
|
11
|
+
def endpoint
|
12
|
+
"dealCustomFieldData"
|
13
|
+
end
|
14
|
+
|
15
|
+
def root_element
|
16
|
+
:dealCustomFieldDatum
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class Deal < Model # :nodoc:
|
5
|
+
define_attributes :contact,
|
6
|
+
:account,
|
7
|
+
:description,
|
8
|
+
:currency,
|
9
|
+
:group,
|
10
|
+
:owner,
|
11
|
+
:percent,
|
12
|
+
:stage,
|
13
|
+
:status,
|
14
|
+
:title,
|
15
|
+
:value
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class Pipeline < Model # :nodoc:
|
5
|
+
define_attributes :allgroups,
|
6
|
+
:allusers,
|
7
|
+
:autoassign,
|
8
|
+
:currency,
|
9
|
+
:title,
|
10
|
+
:users
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def endpoint
|
14
|
+
"dealGroups"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class Stage < Model # :nodoc:
|
5
|
+
define_attributes :cardRegion1,
|
6
|
+
:cardRegion2,
|
7
|
+
:cardRegion3,
|
8
|
+
:cardRegion4,
|
9
|
+
:cardRegion5,
|
10
|
+
:color,
|
11
|
+
:dealOrder,
|
12
|
+
:group,
|
13
|
+
:order,
|
14
|
+
:title,
|
15
|
+
:width
|
16
|
+
class << self
|
17
|
+
def endpoint
|
18
|
+
"dealStages"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class Task < Model # :nodoc:
|
5
|
+
define_attributes :title,
|
6
|
+
:ownerType,
|
7
|
+
:relid,
|
8
|
+
:status,
|
9
|
+
:note,
|
10
|
+
:duedate,
|
11
|
+
:edate,
|
12
|
+
:dealTasktype,
|
13
|
+
:assignee,
|
14
|
+
:triggerAutomationOnCreate,
|
15
|
+
:doneAutomation
|
16
|
+
|
17
|
+
class << self
|
18
|
+
def endpoint
|
19
|
+
"dealTasks"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveCampaign
|
4
|
+
class User < Model # :nodoc:
|
5
|
+
class << self
|
6
|
+
def find_by_email(email)
|
7
|
+
get "#{endpoint}/email/#{email}"
|
8
|
+
end
|
9
|
+
|
10
|
+
def find_by_username(username)
|
11
|
+
get "#{endpoint}/username/#{username}"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ractive_campaign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wedson Lima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -89,13 +89,29 @@ files:
|
|
89
89
|
- lib/active_campaign/api_attributes.rb
|
90
90
|
- lib/active_campaign/api_http.rb
|
91
91
|
- lib/active_campaign/models/account.rb
|
92
|
+
- lib/active_campaign/models/account_contact.rb
|
92
93
|
- lib/active_campaign/models/address.rb
|
94
|
+
- lib/active_campaign/models/campaign.rb
|
93
95
|
- lib/active_campaign/models/contact.rb
|
96
|
+
- lib/active_campaign/models/contact_automation.rb
|
97
|
+
- lib/active_campaign/models/contact_deal.rb
|
94
98
|
- lib/active_campaign/models/contact_tag.rb
|
99
|
+
- lib/active_campaign/models/custom_deal_field.rb
|
100
|
+
- lib/active_campaign/models/custom_deal_field_value.rb
|
101
|
+
- lib/active_campaign/models/deal.rb
|
102
|
+
- lib/active_campaign/models/email_activity.rb
|
103
|
+
- lib/active_campaign/models/field.rb
|
104
|
+
- lib/active_campaign/models/field_value.rb
|
95
105
|
- lib/active_campaign/models/list.rb
|
96
106
|
- lib/active_campaign/models/model.rb
|
97
107
|
- lib/active_campaign/models/note.rb
|
108
|
+
- lib/active_campaign/models/pipeline.rb
|
109
|
+
- lib/active_campaign/models/stage.rb
|
98
110
|
- lib/active_campaign/models/tag.rb
|
111
|
+
- lib/active_campaign/models/task.rb
|
112
|
+
- lib/active_campaign/models/task_outcome.rb
|
113
|
+
- lib/active_campaign/models/task_type.rb
|
114
|
+
- lib/active_campaign/models/user.rb
|
99
115
|
- lib/active_campaign/parser.rb
|
100
116
|
- lib/active_campaign/version.rb
|
101
117
|
homepage: https://github.com/wedsonlima/ractive_campaign
|