active-campaign-rails 0.2.0 → 0.2.1
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-rails.rb +2 -2
- data/lib/active-campaign-rails/client.rb +3 -3
- data/lib/active-campaign-rails/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94834028c88d81ad832621e6ab369f7c79280354
|
4
|
+
data.tar.gz: fa8e044a76ee6e8c1efb063030881bd7c0e4b918
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f6480da7365761bebe7f2327d07aeea524d2859d68a91a286887da1fd6e5b9b413783a6cea6e82bdd9e1477ebbd4c45492c361ec3cbb7eb741a74c144915b01
|
7
|
+
data.tar.gz: d1f8f785a6a6b95f284df7064b6cc777f85d3e7a3fe60a5f10c213ea938aa9c6a9af007dd158e774f8d77955e7e1bec95083ae99b03c0315a34729c1ae0a005e
|
@@ -24,7 +24,7 @@ class ActiveCampaign
|
|
24
24
|
def method_missing(api_action, *args, &block)
|
25
25
|
|
26
26
|
# Generate api_url
|
27
|
-
api_url = generate_api_url()
|
27
|
+
api_url = generate_api_url(api_action)
|
28
28
|
|
29
29
|
# Check method for api_action given
|
30
30
|
case action_calls[api_action][:method]
|
@@ -60,7 +60,7 @@ class ActiveCampaign
|
|
60
60
|
end
|
61
61
|
|
62
62
|
private
|
63
|
-
def generate_api_url
|
63
|
+
def generate_api_url api_action
|
64
64
|
return "#{@api_endpoint}/admin/api.php?api_key=#{@api_key}&api_action=#{api_action.to_s}&api_output=#{@api_output}"
|
65
65
|
end
|
66
66
|
|
@@ -81,8 +81,8 @@ module Client
|
|
81
81
|
deal_tasktype_edit: { method: 'post' },
|
82
82
|
|
83
83
|
# Form
|
84
|
-
|
85
|
-
|
84
|
+
form_getforms: { method: 'get' },
|
85
|
+
form_html: { method: 'get' },
|
86
86
|
|
87
87
|
# Group
|
88
88
|
group_add: { method: 'post' },
|
@@ -161,4 +161,4 @@ module Client
|
|
161
161
|
}
|
162
162
|
end
|
163
163
|
|
164
|
-
end
|
164
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-campaign-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eky Fauzi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -91,11 +91,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.2.2
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Simple rails wrapper for ActiveCampaign API
|
98
98
|
test_files:
|
99
99
|
- spec/active_campaign_spec.rb
|
100
100
|
- spec/spec_helper.rb
|
101
|
-
has_rdoc:
|