Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ruby driver for little.io
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
license.txt
little.gemspec
readme.md

readme.md

little.io Ruby Library

This is a ruby driver for the http://little.io services.

Installation

gem install little

Configuration

On startup, you'll want to setup your api key and secret:

Little.configure do |config|
  config.api_key = 'KEY'
  config.api_secret = 'SECRET'
end

Other available options are (with default):

host (api.little.io)
port (443)
secure (true)
http_open_timeout (5)
http_read_timeout (5)
proxy_host (nil)
proxy_pass (nil)
proxy_port (nil)
proxy_user (nil)

Errors

Most errors will be raised as an instance of Little::Error

Signing

The driver will automatically include the signature. However, signing helpers are available for use with the https://github.com/littleio/little-javascript.

Usage

Once configured the services can be invoked via various methods:

Little::User.login_attempt(user, request.remote_ip, true)
Something went wrong with that request. Please try again.