Module: ActiveCampaignRb
- Defined in:
- lib/active_campaign_rb.rb,
lib/active_campaign_rb/config.rb,
lib/active_campaign_rb/errors.rb,
lib/active_campaign_rb/version.rb,
lib/active_campaign_rb/http_client.rb,
lib/active_campaign_rb/transform_hash.rb,
lib/active_campaign_rb/faraday/middleware.rb,
lib/active_campaign_rb/faraday/middleware/request.rb,
lib/active_campaign_rb/faraday/middleware/response.rb
Overview
API Client for the Active Campaign API v3
Defined Under Namespace
Modules: Faraday, TransformHash
Classes: BadRequestError, ClientError, Config, ConflictError, ConnectionFailed, Error, ErrorProxy, ForbiddenError, HttpClient, InvalidHTTPMethod, NilStatusError, ParsingError, ProxyAuthError, ResourceNotFound, SSLError, ServerError, TimeoutError, UnauthorizedError, UnprocessableEntityError
Constant Summary
collapse
- ENDPOINTS =
YAML.load_file(File.join(File.dirname(__FILE__), "active_campaign_rb", "endpoints.yaml"))
- VERSION =
"1.0.0"
- LOGGER =
::Logger.new($stdout)
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
21
22
23
|
# File 'lib/active_campaign_rb.rb', line 21
def config
@config ||= Config.new
end
|
25
26
27
|
# File 'lib/active_campaign_rb.rb', line 25
def configure
yield config if block_given?
end
|
.http_client ⇒ Object
29
30
31
|
# File 'lib/active_campaign_rb.rb', line 29
def http_client
@http_client ||= HttpClient.new(config)
end
|