Project

sandcage

0.02
No commit activity in last 3 years
No release in over 3 years
Ruby library to access SandCage's API services.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0

Runtime

~> 2016.9
~> 0.13.7
 Project Readme

SandCage

Scrutinizer Code Quality Build Status Gem Version

sandcage-api-ruby is a Ruby library for interfacing with SandCage's API. The API documentation can be found at https://www.sandcage.com/docs/0.2/

Table of Contents

Installation

Add this line to your application's Gemfile:

gem 'sandcage'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sandcage

Usage

Simply:

require 'sandcage'
sc = Sandcage::Client.new('[YOUR_SANDCAGE_API_KEY]')
# Then for examples to use list_files service
response = sc.list_files_service

To not include YOUR_SANDCAGE_API_KEY into your code you can for example save it as a file named SANDCAGE_API_KEY into your home directory

cd ~
echo YOUR_SANDCAGE_API_KEY > SANDCAGE_API_KEY

and then use the following code to initialize Sandcage client

require "sandcage"
api_key_dir = File.expand_path("~")
api_key_file = File.join(api_key_dir, "SANDCAGE_API_KEY")
api_key = IO.readlines(api_key_file)[0]
	
sc = Sandcage::Client.new(api_key)

Contributing

We are open to suggestions and code revisions, however there are some rules and limitations that you might want to consider first.

  • Code that you contribute will automatically be licensed under the Apache License Version 2.0.
  • Third party code will be reviewed, tested and possibly modified before being released.

These basic rules help ensure that this code remains Open Source and compatible with Apache 2.0 license. All contributions will be added to the changelog and appear in every release.