active_campaign_ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 31df50f65f0dff874c0961d38fc107f7ed02e8dc
4
+ data.tar.gz: 70245119dbc25ef16cd4c2d274562d0e6647ea75
5
+ SHA512:
6
+ metadata.gz: 8889d73bdfd1103e7c6ab869cbe20ed23cd1ddc53426533cc6620e79f1b33e4c9f1ed327f839dfc9e00db7f54f009ab2458ea80c2baf9e0a78f113a98a9b50c7
7
+ data.tar.gz: cb9249ebe49766bbd35a7ff1997507e7d2e8d6ad77936e1b51b607f06442aaf1362fbc1efffd521e5cb9b37f598f0a979d91adc4e36025b7bf4d0f533e6c95a5
@@ -0,0 +1,19 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ # Ignore vim tmp files
14
+ *.swp
15
+ *.swo
16
+ *.swn
17
+
18
+ # Gem buils
19
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.0
5
+ before_install: gem install bundler -v 1.16.2
@@ -0,0 +1,19 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ ## Attribution
14
+
15
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
16
+ available at [http://contributor-covenant.org/version/1/4][version]
17
+
18
+ [homepage]: http://contributor-covenant.org
19
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in active_campaign_ruby.gemspec
6
+ gemspec
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ active_campaign_ruby (0.1.0)
5
+ httparty (~> 0.16.2)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.1.2)
11
+ diff-lcs (1.3)
12
+ httparty (0.16.2)
13
+ multi_xml (>= 0.5.2)
14
+ method_source (0.9.0)
15
+ multi_xml (0.6.0)
16
+ pry (0.11.3)
17
+ coderay (~> 1.1.0)
18
+ method_source (~> 0.9.0)
19
+ rake (10.5.0)
20
+ rspec (3.7.0)
21
+ rspec-core (~> 3.7.0)
22
+ rspec-expectations (~> 3.7.0)
23
+ rspec-mocks (~> 3.7.0)
24
+ rspec-core (3.7.1)
25
+ rspec-support (~> 3.7.0)
26
+ rspec-expectations (3.7.0)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.7.0)
29
+ rspec-mocks (3.7.0)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.7.0)
32
+ rspec-support (3.7.1)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ active_campaign_ruby!
39
+ bundler (~> 1.16)
40
+ pry (~> 0.11.3)
41
+ rake (~> 10.0)
42
+ rspec (~> 3.0)
43
+
44
+ BUNDLED WITH
45
+ 1.16.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Ben Gelsey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ # Active::Campaign::Ruby
2
+ ActiveCampaignRuby is wrapper for the ActiveCampaign API using HttParty.
3
+ It provides all the active-campaign api actions i.e. contact, list.
4
+
5
+ Links:
6
+ - [API documentation](https://www.activecampaign.com/api/overview.php)
7
+ - [Source Code](https://github.com/flights-machine/active_campaign_ruby)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'active_campaign_ruby'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install active_campaign_ruby
24
+
25
+ ## Usage
26
+ ```ruby
27
+ # To setup the client
28
+ client = ActiveCampaign::Client.new(
29
+ api_endpoint: 'YOUR-ENDPOINT', # e.g. 'https://yourendpoint.api-us1.com/admin/api.php'
30
+ api_key: 'YOUR-API-KEY') # e.g. 'b8f60a1nm600595d5cc37ede55693451812855f'
31
+ ```
32
+ ```ruby
33
+ # To fetch all list
34
+ client.list_list ids: 'all'
35
+ ```
36
+ ```ruby
37
+ # To Add/Update/Edit Contact
38
+ response = client.contact_sync(email: 'test@example.com')
39
+ ```
40
+
41
+ ## Contributing
42
+ 1. Fork it
43
+ 2. Create your feature branch (`git checkout -b feature-branch`)
44
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
45
+ 4. Rebase against master we want 1 commit per feature
46
+ 5. Push to the branch (`git push origin feature-branch`)
47
+ 6. Create new Pull Request
48
+
49
+ ## License
50
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,37 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "active_campaign_ruby/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "active_campaign_ruby"
8
+ spec.version = ActiveCampaignRuby::VERSION
9
+ spec.authors = ["Ben Gelsey"]
10
+ spec.email = ["ben@bengelsey.com"]
11
+ spec.summary = %q{See http://www.activecampaign.com/api/overview.php for more information}
12
+ spec.description = %q{Write a longer description or delete this line.}
13
+ spec.homepage = "https://github.com/flights-machine/active_campaign_ruby"
14
+ spec.license = "MIT"
15
+
16
+ if spec.respond_to?(:metadata)
17
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
18
+ else
19
+ raise "RubyGems 2.0 or newer is required to protect against " \
20
+ "public gem pushes."
21
+ end
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "httparty", '~> 0.16.2'
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency "pry", "~> 0.11.3"
37
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "active_campaign_ruby"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,10 @@
1
+ require 'active_campaign_ruby/version'
2
+ require 'active_campaign_ruby/client'
3
+
4
+ begin
5
+ require 'pry'
6
+ rescue LoadError
7
+ end
8
+
9
+ module ActiveCampaignRuby
10
+ end
@@ -0,0 +1,55 @@
1
+ require 'httparty'
2
+ require 'active_campaign_ruby/core/list'
3
+ require 'active_campaign_ruby/core/contacts'
4
+ require 'active_campaign_ruby/core/campaigns'
5
+ require 'active_campaign_ruby/core/deals'
6
+ require 'active_campaign_ruby/core/forms'
7
+ require 'active_campaign_ruby/core/groups'
8
+ require 'active_campaign_ruby/core/messages'
9
+ require 'active_campaign_ruby/core/tracks'
10
+ require 'active_campaign_ruby/core/users'
11
+
12
+ module ActiveCampaignRuby
13
+ class Client
14
+ include HTTParty
15
+ include ActiveCampaignRuby::Core::List
16
+ include ActiveCampaignRuby::Core::Campaigns
17
+ include ActiveCampaignRuby::Core::Contacts
18
+ include ActiveCampaignRuby::Core::Deals
19
+ include ActiveCampaignRuby::Core::Forms
20
+ include ActiveCampaignRuby::Core::Groups
21
+ include ActiveCampaignRuby::Core::Messages
22
+ include ActiveCampaignRuby::Core::Tracks
23
+ include ActiveCampaignRuby::Core::Users
24
+
25
+ API_ENDPOINT = 'https://subdomain.activehosted.com/admin/api.php'
26
+ API_KEY = 'API_KEY'
27
+ API_OUTPUT = 'json'
28
+
29
+ def initialize(options = {})
30
+ self.class.base_uri (options[:api_endpoint] || API_ENDPOINT)+'?api_action='
31
+ @option = { api_key: options[:api_key] || API_KEY,
32
+ api_output: options[:api_output] || API_OUTPUT }
33
+ end
34
+
35
+ # Make get request
36
+ def get(api_method, options = {})
37
+ self.class.get(api_method.to_s, req_params(__method__, options))
38
+ end
39
+
40
+ # Make post request
41
+ def post(api_method, options = {})
42
+ self.class.post(api_method.to_s, req_params(__method__, options))
43
+ end
44
+
45
+ private
46
+
47
+ def req_params(method, options={})
48
+ if method == :get
49
+ return { query: @option.merge(options) }
50
+ elsif method == :post
51
+ return { body: @option.merge(options) }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,85 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Campaigns
4
+ def campaign_create(options = {})
5
+ post __method__, options
6
+ end
7
+
8
+ def campaign_edit(options = {})
9
+ post __method__, options
10
+ end
11
+
12
+ def campaign_list(options = {})
13
+ get __method__, options
14
+ end
15
+
16
+ def campaign_delete_list(options = {})
17
+ get __method__, options
18
+ end
19
+
20
+ def campaign_delete(options = {})
21
+ get __method__, options
22
+ end
23
+
24
+ def campaign_paginator(options = {})
25
+ get __method__, options
26
+ end
27
+
28
+ def campaign_report_bounce_list(options = {})
29
+ get __method__, options
30
+ end
31
+
32
+ def campaign_report_bounce_totals(options = {})
33
+ get __method__, options
34
+ end
35
+
36
+ def campaign_report_forward_list(options = {})
37
+ get __method__, options
38
+ end
39
+
40
+ def campaign_report_forward_totals(options = {})
41
+ get __method__, options
42
+ end
43
+
44
+ def campaign_report_link_list(options = {})
45
+ get __method__, options
46
+ end
47
+
48
+ def campaign_report_link_totals(options = {})
49
+ get __method__, options
50
+ end
51
+
52
+ def campaign_report_open_list(options = {})
53
+ get __method__, options
54
+ end
55
+
56
+ def campaign_report_open_totals(options = {})
57
+ get __method__, options
58
+ end
59
+
60
+ def campaign_report_totals(options = {})
61
+ get __method__, options
62
+ end
63
+
64
+ def campaign_report_unopen_list(options = {})
65
+ get __method__, options
66
+ end
67
+
68
+ def campaign_report_unsubscription_list(options = {})
69
+ get __method__, options
70
+ end
71
+
72
+ def campaign_report_unsubscription_totals(options = {})
73
+ get __method__, options
74
+ end
75
+
76
+ def campaign_send(options = {})
77
+ get __method__, options
78
+ end
79
+
80
+ def campaign_status(options = {})
81
+ get __method__, options
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,71 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Contacts
4
+ def contact_add(options = {})
5
+ post __method__, options
6
+ end
7
+ alias subscriber_add contact_add
8
+
9
+ def contact_edit(options = {})
10
+ post __method__, options
11
+ end
12
+
13
+ def contact_sync(options = {})
14
+ post __method__, options
15
+ end
16
+
17
+ def contact_tag_add(options = {})
18
+ post __method__, options
19
+ end
20
+
21
+ def contact_tag_remove(options = {})
22
+ post __method__, options
23
+ end
24
+
25
+ def contact_note_edit(options = {})
26
+ post __method__, options
27
+ end
28
+
29
+ def contact_note_add(options = {})
30
+ post __method__, options
31
+ end
32
+
33
+ def contact_automation_list(options = {})
34
+ get __method__, options
35
+ end
36
+
37
+ def contact_delete_list(options = {})
38
+ get __method__, options
39
+ end
40
+
41
+ def contact_delete(options = {})
42
+ get __method__, options
43
+ end
44
+
45
+ def contact_list(options = {})
46
+ get __method__, options
47
+ end
48
+
49
+
50
+ def contact_paginator(options = {})
51
+ get __method__, options
52
+ end
53
+
54
+ def contact_view(options = {})
55
+ get __method__, options
56
+ end
57
+
58
+ def contact_view_email(options = {})
59
+ get __method__, options
60
+ end
61
+
62
+ def contact_view_hash(options = {})
63
+ get __method__, options
64
+ end
65
+
66
+ def contact_note_delete(options = {})
67
+ get __method__, options
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,85 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Deals
4
+ def deal_get(options = {})
5
+ get __method__, options
6
+ end
7
+
8
+ def deal_list(options = {})
9
+ get __method__, options
10
+ end
11
+
12
+ def deal_pipeline_list(options = {})
13
+ get __method__, options
14
+ end
15
+
16
+ def deal_stage_list(options = {})
17
+ get __method__, options
18
+ end
19
+
20
+ def deal_add(options = {})
21
+ post __method__, options
22
+ end
23
+
24
+ def deal_delete(options = {})
25
+ post __method__, options
26
+ end
27
+
28
+ def deal_edit(options = {})
29
+ post __method__, options
30
+ end
31
+
32
+ def deal_note_add(options = {})
33
+ post __method__, options
34
+ end
35
+
36
+ def deal_note_edit(options = {})
37
+ post __method__, options
38
+ end
39
+
40
+ def deal_pipeline_add(options = {})
41
+ post __method__, options
42
+ end
43
+
44
+ def deal_pipeline_delete(options = {})
45
+ post __method__, options
46
+ end
47
+
48
+ def deal_pipeline_edit(options = {})
49
+ post __method__, options
50
+ end
51
+
52
+ def deal_stage_add(options = {})
53
+ post __method__, options
54
+ end
55
+
56
+ def deal_stage_delete(options = {})
57
+ post __method__, options
58
+ end
59
+
60
+ def deal_stage_edit(options = {})
61
+ post __method__, options
62
+ end
63
+
64
+ def deal_task_add(options = {})
65
+ post __method__, options
66
+ end
67
+
68
+ def deal_task_edit(options = {})
69
+ post __method__, options
70
+ end
71
+
72
+ def deal_tasktype_add(options = {})
73
+ post __method__, options
74
+ end
75
+
76
+ def deal_tasktype_delete(options = {})
77
+ post __method__, options
78
+ end
79
+
80
+ def deal_tasktype_edit(options = {})
81
+ post __method__, options
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,13 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Forms
4
+ def form_getforms(options = {})
5
+ get(__method__, options)
6
+ end
7
+
8
+ def form_html(options = {})
9
+ get(__method__, options)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Groups
4
+ def group_add(options = {})
5
+ post __method__, options
6
+ end
7
+
8
+ def group_list(options = {})
9
+ get __method__, options
10
+ end
11
+
12
+ def group_view(options = {})
13
+ get __method__, options
14
+ end
15
+
16
+ def group_delete(options = {})
17
+ get __method__, options
18
+ end
19
+
20
+ def group_delete_list(options = {})
21
+ get __method__, options
22
+ end
23
+
24
+ def group_edit(options = {})
25
+ post __method__, options
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,50 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module List
4
+
5
+ def list_list(options= {})
6
+ get __method__, options
7
+ end
8
+
9
+ def list_add(options = {})
10
+ post __method__, options
11
+ end
12
+
13
+ def list_edit(options = {})
14
+ post __method__, options
15
+ end
16
+
17
+ def list_field_add(options = {})
18
+ post __method__, options
19
+ end
20
+
21
+ def list_field_edit(options = {})
22
+ post __method__, options
23
+ end
24
+
25
+ def list_delete_list(options = {})
26
+ get __method__, options
27
+ end
28
+
29
+ def list_delete(options = {})
30
+ get __method__, options
31
+ end
32
+
33
+ def list_field_delete(options = {})
34
+ get __method__, options
35
+ end
36
+
37
+ def list_field_view(options = {})
38
+ get __method__, options
39
+ end
40
+
41
+ def list_paginator(options = {})
42
+ get __method__, options
43
+ end
44
+
45
+ def list_view(options = {})
46
+ get __method__, options
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,61 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Messages
4
+ def message_delete_list(options = {})
5
+ get(__method__, options)
6
+ end
7
+
8
+ def message_delete(options = {})
9
+ get(__method__, options)
10
+ end
11
+
12
+ def message_list(options = {})
13
+ get(__method__, options)
14
+ end
15
+
16
+ def message_template_add(options = {})
17
+ get(__method__, options)
18
+ end
19
+
20
+ def message_template_delete_list(options = {})
21
+ get(__method__, options)
22
+ end
23
+
24
+ def message_template_delete(options = {})
25
+ get(__method__, options)
26
+ end
27
+
28
+ def message_template_export(options = {})
29
+ get(__method__, options)
30
+ end
31
+
32
+ def message_template_import(options = {})
33
+ get(__method__, options)
34
+ end
35
+
36
+ def message_template_list(options = {})
37
+ get(__method__, options)
38
+ end
39
+
40
+ def message_template_view(options = {})
41
+ get(__method__, options)
42
+ end
43
+
44
+ def message_view(options = {})
45
+ get(__method__, options)
46
+ end
47
+
48
+ def message_add(options = {})
49
+ post __method__, options
50
+ end
51
+
52
+ def message_edit(options = {})
53
+ post __method__, options
54
+ end
55
+
56
+ def message_template_edit(options = {})
57
+ post __method__, options
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,38 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Tracks
4
+ def track_event_list(options = {})
5
+ get __method__, options
6
+ end
7
+
8
+ def track_site_list(options = {})
9
+ get __method__, options
10
+ end
11
+
12
+
13
+ def track_event_status_edit(options = {})
14
+ post __method__, options
15
+ end
16
+
17
+ def track_site_status_edit(options = {})
18
+ post __method__, options
19
+ end
20
+
21
+ def track_event_add(options = {})
22
+ post __method__, options
23
+ end
24
+
25
+ def track_site_whitelist_add(options = {})
26
+ put __method__, options
27
+ end
28
+
29
+ def track_event_delete(options = {})
30
+ delete __method__, options
31
+ end
32
+
33
+ def track_site_whitelist_delete(options = {})
34
+ delete __method__, options
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,41 @@
1
+ module ActiveCampaignRuby
2
+ module Core
3
+ module Users
4
+ def user_add(options = {})
5
+ post __method__, options
6
+ end
7
+
8
+ def user_edit(options = {})
9
+ post __method__, options
10
+ end
11
+
12
+ def user_delete(options = {})
13
+ get __method__, options
14
+ end
15
+
16
+ def user_delete_list(options = {})
17
+ get __method__, options
18
+ end
19
+
20
+ def user_list(options = {})
21
+ get __method__, options
22
+ end
23
+
24
+ def user_me(options = {})
25
+ get __method__, options
26
+ end
27
+
28
+ def user_view(options = {})
29
+ get __method__, options
30
+ end
31
+
32
+ def user_view_email(options = {})
33
+ get __method__, options
34
+ end
35
+
36
+ def user_view_username(options = {})
37
+ get __method__, options
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,3 @@
1
+ module ActiveCampaignRuby
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_campaign_ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ben Gelsey
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.16.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.16.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.11.3
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.3
83
+ description: Write a longer description or delete this line.
84
+ email:
85
+ - ben@bengelsey.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - active_campaign_ruby.gemspec
100
+ - bin/console
101
+ - bin/setup
102
+ - lib/active_campaign_ruby.rb
103
+ - lib/active_campaign_ruby/client.rb
104
+ - lib/active_campaign_ruby/core/campaigns.rb
105
+ - lib/active_campaign_ruby/core/contacts.rb
106
+ - lib/active_campaign_ruby/core/deals.rb
107
+ - lib/active_campaign_ruby/core/forms.rb
108
+ - lib/active_campaign_ruby/core/groups.rb
109
+ - lib/active_campaign_ruby/core/list.rb
110
+ - lib/active_campaign_ruby/core/messages.rb
111
+ - lib/active_campaign_ruby/core/tracks.rb
112
+ - lib/active_campaign_ruby/core/users.rb
113
+ - lib/active_campaign_ruby/version.rb
114
+ homepage: https://github.com/flights-machine/active_campaign_ruby
115
+ licenses:
116
+ - MIT
117
+ metadata:
118
+ allowed_push_host: https://rubygems.org
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.6.12
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: See http://www.activecampaign.com/api/overview.php for more information
139
+ test_files: []