active_campaign 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_campaign/client.rb +2 -0
- data/lib/active_campaign/configuration.rb +8 -7
- data/lib/active_campaign/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: 5b1a95ecb8e1b511c3384759c2d0005c668fc12b
|
4
|
+
data.tar.gz: 43695dcb3082d1813111219d2585522974ae676e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbc903d5b648f21ae4263946e38d1c626d89e4ccc3b98a56e4a9fcb049b9f02f1a252dd14277abea8ea7e123ace929b73e29dced342a6bd938bc57515a84f596
|
7
|
+
data.tar.gz: e20a981dc8125cd567dcd6bcac64caa0aa04ef279ea82e41c45bfd7aa999d294098ffd3883bb579b25997bd0a1d902f9b6310982d40055e7859a5eb52b49dd30
|
@@ -4,6 +4,7 @@ require 'active_campaign/request'
|
|
4
4
|
|
5
5
|
require 'active_campaign/client/contacts'
|
6
6
|
require 'active_campaign/client/lists'
|
7
|
+
require 'active_campaign/client/campaigns'
|
7
8
|
|
8
9
|
module ActiveCampaign
|
9
10
|
class Client
|
@@ -21,5 +22,6 @@ module ActiveCampaign
|
|
21
22
|
|
22
23
|
include ActiveCampaign::Client::Contacts
|
23
24
|
include ActiveCampaign::Client::Lists
|
25
|
+
include ActiveCampaign::Client::Campaigns
|
24
26
|
end
|
25
27
|
end
|
@@ -21,13 +21,14 @@ module ActiveCampaign
|
|
21
21
|
:log_requests,
|
22
22
|
:per_page].freeze
|
23
23
|
|
24
|
-
DEFAULT_ADAPTER
|
25
|
-
DEFAULT_API_VERSION
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
DEFAULT_ADAPTER = Faraday.default_adapter
|
25
|
+
DEFAULT_API_VERSION = 3
|
26
|
+
TEST_URL = "https://yourdomain.activehosted.com"
|
27
|
+
DEFAULT_API_ENDPOINT = ENV["ACTIVECAMPAIGN_API_ENDPOINT"] || TEST_URL
|
28
|
+
DEFAULT_API_PATH = ENV["ACTIVECAMPAIGN_API_PATH"] || "admin/api.php"
|
29
|
+
DEFAULT_API_OUTPUT = ENV["ACTIVECAMPAIGN_API_OUTPUT"] || "json"
|
30
|
+
DEFAULT_USER_AGENT = "ActiveCampaign Ruby Gem #{VERSION}".freeze
|
31
|
+
DEFAULT_AUTO_TRAVERSAL = false
|
31
32
|
|
32
33
|
attr_accessor(*VALID_OPTIONS_KEYS)
|
33
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_campaign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikael Henriksson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
211
|
rubyforge_project:
|
212
|
-
rubygems_version: 2.0.
|
212
|
+
rubygems_version: 2.0.7
|
213
213
|
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: See http://www.activecampaign.com/api/overview.php for more information
|