class ContextIO::Lite

Public Class Methods

new(key, secret, opts={}) click to toggle source

Creates a new ‘ContextIO` instance and makes a new handle for the API. This is your entry point to your Context.IO account. For a web app, you probably want to instantiate this in some kind of initializer and keep it around for the life of the process.

@param [String] key Your OAuth consumer key for your Context.IO account @param [String] secret Your OAuth consumer secret for your Context.IO

account

@param [Hash] opts Optional options for OAuth connections. ie. :timeout and :open_timeout are supported

# File lib/contextio/lite.rb, line 14
def initialize(key, secret, opts={})
  @api = API.new(key, secret, opts)
end

Public Instance Methods

users() click to toggle source

Your entry point for dealing with users.

@return [Users] Allows you to work with the email accounts for

your account as a group.
# File lib/contextio/lite.rb, line 22
def users
  UserCollection.new(api)
end