Giter Site home page Giter Site logo

corespring-ruby's Introduction

corespring-ruby

<img src=“https://travis-ci.org/corespring/corespring-ruby.svg” alt=“Travis CI”>

Installation

You can include the corespring-ruby gem directly in your Gemfile:

gem 'corespring', require: 'corespring-ruby'

See the ‘Examples’ section about specific API usage.

CLI Examples

A command line interface is availably if you install the Gem manually:

$ gem install corespring

In conjunction with this, a +~/.corespring+ file can be used to store your credentials:

client_id = '553532167c7b5b155a660cc4'
secret = '7t5cflvx4sc3ou1xhhoefmy5h'

Token

You can obtain an API token using the token action:

$ corespring token
8yomydfo7xxob63nlktxoomb1

Encrypt

You can encrypt options using the encrypt action, specifying --options as follows:

$ corespring encrypt --options "{\"mode\": \"gather\"}"
50d2cc461f10e4085e1fd23eb640f2ef--5bb672fadeb78c8139c7cc87dfbe3bcb

Library Examples

Create a new CoreSpring::APIClient object with your client_id and secret:

client = CoreSpring::APIClient.new(client_id, secret)

API Token

client.get_token # 8yomydfo7xxob63nlktxoomb1

Encrypt Options

options = { mode: 'gather' }
client.encrypt(options) # 130bb4b25f87afc1d825b35afb94596c--7ff4dc0e463b1b0a92705eacd36ac3ea

LICENSE

See the LICENSE.txt file for more information.

corespring-ruby's People

Contributors

benburton avatar patrickomatic avatar solebared avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.