Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The ecircle gem: Eases the pain when dealing with the most horrible API on this planet
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rvmrc
Gemfile
Gemfile.lock
README.md
Rakefile
ecircle.gemspec

README.md

This gem aims to be a full-fledged solution for the ecircle API, the synchronous one and the asynchronous one.

This is WIP and far from complete.

Features

So far just a couple of methods:

  • create_member
  • create_or_update_user_by_email
  • delete_member
  • logon
  • send_parametrized_single_message_to_user

To do

  • Rethink current structure e.g.
    • doing an explicit logon in every method is ugly at best
    • inefficient handling of session token (we could and should reuse it instead of requesting a new one every time)
  • Implement missing API methods
  • Specs
  • RDoc

Configuration

Ecircle.configure do |config|
  config.user     = 'your@user.com'
  config.realm    = 'http://your.realm.com'
  config.password = 'your_password'
end

Usage

Ecircle.create_or_update_user_by_email 'user@email.com'
Something went wrong with that request. Please try again.