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

backscatterio

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backscatterio

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Backscatter.io Ruby

BackscatterIO - the Ruby gem for the Backscatter.io

This is the Backscatter.io API.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build backscatterio.gemspec

Then either install the gem locally:

gem install ./backscatterio-1.0.0.gem

(for development, run gem install --dev ./backscatterio-1.0.0.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 'backscatterio', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/backscatterio/ruby, then add the following in the Gemfile:

gem 'backscatterio', :git => 'https://github.com/backscatterio/ruby.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 'backscatterio'

# Setup authorization
BackscatterIO.configure do |config|
  # Configure API key authorization: ApiKeyAuth
  config.api_key['X-API-KEY'] = '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['X-API-KEY'] = 'Bearer'
end

api_instance = BackscatterIO::Api.new

query = 'query_example' # String | 


begin
  #enriches asn
  result = api_instance.enrich_asn(query)
  p result
rescue BackscatterIO::ApiError => e
  puts "Exception when calling Api->enrich_asn: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.backscatter.io/v0

ClassMethodHTTP requestDescription
BackscatterIO::Apienrich_asnGET /enrichment/asnenriches asn
BackscatterIO::Apienrich_ipGET /enrichment/ipenriches ip
BackscatterIO::Apienrich_networkGET /enrichment/networkenriches network
BackscatterIO::ApihelloGET /helloauthenticate to the service
BackscatterIO::ApiobservationsGET /observations/{queryType}fetches observations for a given ip address
BackscatterIO::ApitrendsGET /trends/popular/{trendType}Top N items

Documentation for Models

Documentation for Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

FAQs

Package last updated on 03 Feb 2019

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