cloudmersive-security-api-client
CloudmersiveSecurityApiClient - the Ruby gem for the securityapi
The security APIs help you detect and block security threats.
This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 2.0.1
- Build package: io.swagger.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build cloudmersive-security-api-client.gemspec
Then either install the gem locally:
gem install ./cloudmersive-security-api-client-2.0.1.gem
(for development, run gem install --dev ./cloudmersive-security-api-client-2.0.1.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 'cloudmersive-security-api-client', '~> 2.0.1'
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 'cloudmersive-security-api-client', :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:
require 'cloudmersive-security-api-client'
CloudmersiveSecurityApiClient.configure do |config|
config.api_key['Apikey'] = 'YOUR API KEY'
end
api_instance = CloudmersiveSecurityApiClient::ContentThreatDetectionApi.new
value = 'value_example'
begin
result = api_instance.content_threat_detection_automatic_threat_detection_string(value)
p result
rescue CloudmersiveSecurityApiClient::ApiError => e
puts "Exception when calling ContentThreatDetectionApi->content_threat_detection_automatic_threat_detection_string: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://api.cloudmersive.com
Documentation for Models
Documentation for Authorization
Apikey
- Type: API key
- API key parameter name: Apikey
- Location: HTTP header