Project

interspire

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby library for the Interspire API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

~> 1.6
 Project Readme

Interspire Build Status Donate

Ruby library for the Interspire API.

See the Interspire::API class for detailed documentation.

Installation

Add this line to your application's Gemfile:

gem 'interspire'

And then execute:

$ bundle

Or install it yourself as:

$ gem install interspire

Usage

The API class requires 3 parameters; the API URL of your Interspire installation, a username, and that username's token. This information can be found under the 'Users & Groups' menu on your Interspire installation. You might have to enable API access for the user.

api_url = 'http://example.com/xml.php'
user    = 'luser'
token   = 'some_valid_api_token'

api = Interspire::API.new(api_url, user, token)

# Get an array of Interspire::ContactList objects:
api.get_lists  # => [#<Interspire::ContactList:0x8bc6cb0 @id="7", @name="List Foo", ...

See the Interspire::API class for documentation on the available methods.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request