agentcat-api
AgentCatApi - the Ruby gem for the AgentCat API
API for AgentCat application
This SDK is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 0.0.3
- Generator version: 7.14.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build agentcat-api.gemspec
Then either install the gem locally:
gem install ./agentcat-api-0.0.3.gem
(for development, run gem install --dev ./agentcat-api-0.0.3.gem to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'agentcat-api', '~> 0.0.3'
Install from Git
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'agentcat-api', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly
Include the Ruby code directly using -I as follows:
ruby -Ilib script.rb
Getting Started
Please follow the installation procedure and then run the following code:
# Load the gem
require 'agentcat-api'
api_instance = AgentCatApi::AlertsApi.new
opts = {
token: 'token_example' # String |
}
begin
#Show the confirmation page for removing an email address from one alert rule
result = api_instance.unsubscribe_alert_get(opts)
p result
rescue AgentCatApi::ApiError => e
puts "Exception when calling AlertsApi->unsubscribe_alert_get: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://api.agentcat.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AgentCatApi::AlertsApi | unsubscribe_alert_get | GET /v1/public/alerts/unsubscribe | Show the confirmation page for removing an email address from one alert rule |
| AgentCatApi::AlertsApi | unsubscribe_alert_post | POST /v1/public/alerts/unsubscribe | Remove an email address from one alert rule (List-Unsubscribe-Post and the confirmation form) |
| AgentCatApi::EventsApi | publish_event | POST /v1/public/events/ | Publish analytics event |
| AgentCatApi::NotificationsApi | unsubscribe_notification | POST /v1/public/notifications/unsubscribe | Disable an email notification type for the token's user |
| AgentCatApi::NotificationsApi | verify_email_channel | POST /v1/public/notifications/channels/verify | Activate an email channel from its verification link |
Documentation for Models
- AgentCatApi::EmailChannelVerifyRequest
- AgentCatApi::EmailChannelVerifyResponse
- AgentCatApi::Error
- AgentCatApi::EventAcceptedResponse
- AgentCatApi::PublishEventRequest
- AgentCatApi::QueryTimeout
- AgentCatApi::UnsubscribeRequestRequest
- AgentCatApi::ValidationErrorValue
Documentation for Authorization
Authentication schemes defined for the API:
tokenAuth
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header