Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudmersive-security-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudmersive-security-api-client

  • 2.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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:

# Load the gem
require 'cloudmersive-security-api-client'

# Setup authorization
CloudmersiveSecurityApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveSecurityApiClient::ContentThreatDetectionApi.new

value = 'value_example' # String | User-facing text input.


begin
  #Automatically detect threats in an input string
  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

ClassMethodHTTP requestDescription
CloudmersiveSecurityApiClient::ContentThreatDetectionApicontent_threat_detection_automatic_threat_detection_stringPOST /security/threat-detection/content/automatic/detect/stringAutomatically detect threats in an input string
CloudmersiveSecurityApiClient::ContentThreatDetectionApicontent_threat_detection_check_sql_injection_stringPOST /security/threat-detection/content/sql-injection/detect/stringCheck text input for SQL Injection (SQLI) attacks
CloudmersiveSecurityApiClient::ContentThreatDetectionApicontent_threat_detection_check_xxePOST /security/threat-detection/content/xxe/detect/xml/stringProtect text input from XML External Entity (XXE) attacks
CloudmersiveSecurityApiClient::ContentThreatDetectionApicontent_threat_detection_detect_insecure_deserialization_json_stringPOST /security/threat-detection/content/insecure-deserialization/json/detect/stringDetect Insecure Deserialization JSON (JID) attacks in a string
CloudmersiveSecurityApiClient::ContentThreatDetectionApicontent_threat_detection_protect_xssPOST /security/threat-detection/content/xss/detect/stringProtect text input from Cross-Site-Scripting (XSS) attacks through normalization
CloudmersiveSecurityApiClient::NetworkThreatDetectionApinetwork_threat_detection_detect_ssrf_urlPOST /security/threat-detection/network/url/ssrf/detectCheck a URL for Server-side Request Forgery (SSRF) threats
CloudmersiveSecurityApiClient::NetworkThreatDetectionApinetwork_threat_detection_is_botPOST /security/threat-detection/network/ip/is-botCheck if IP address is a Bot client threat
CloudmersiveSecurityApiClient::NetworkThreatDetectionApinetwork_threat_detection_is_threatPOST /security/threat-detection/network/ip/is-threatCheck if IP address is a known threat
CloudmersiveSecurityApiClient::NetworkThreatDetectionApinetwork_threat_detection_is_tor_nodePOST /security/threat-detection/network/ip/is-tor-nodeCheck if IP address is a Tor node server

Documentation for Models

Documentation for Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

FAQs

Package last updated on 18 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc