public
Description: Ruby wrapper around Highrise API.
Homepage:
Clone URL: git://github.com/tapajos/highrise.git
name age message
file .gitignore Tue Apr 28 17:47:01 -0700 2009 Adjusting gemspec for github [kmayer]
file CHANGELOG Wed May 27 18:50:43 -0700 2009 Documentation updates [kmayer]
file MIT-LICENSE Fri May 29 01:31:25 -0700 2009 Documentation edit Version bump to 0.12.1 [kmayer]
file README.mkdn Wed Nov 11 16:17:14 -0800 2009 Merge remote branch 'kmayer/master' Conflicts:... [tapajos]
file Rakefile Wed Nov 11 16:34:03 -0800 2009 adding Ken's mail [tapajos]
file VERSION.yml Wed Nov 11 16:34:15 -0800 2009 Version bump to 1.0.4 [tapajos]
directory autotest/ Fri May 01 16:07:23 -0700 2009 Version bump to 0.8.0 [kmayer]
directory examples/ Wed Sep 02 11:56:42 -0700 2009 Version bump to 1.0.1 [kmayer]
file highrise.gemspec Wed Nov 11 16:34:03 -0800 2009 adding Ken's mail [tapajos]
file install.rb Wed Jan 14 15:21:37 -0800 2009 Initial Import [tapajos]
directory lib/ Sat Oct 17 13:39:22 -0700 2009 Version bump to 1.0.2 [kmayer]
directory spec/ Wed Sep 02 00:32:53 -0700 2009 Version bump to 1.0.0 Revised Taggable interfac... [kmayer]
file uninstall.rb Wed Jan 14 15:21:37 -0800 2009 Initial Import [tapajos]
README.mkdn

Highrise (1.0)

What is it?

This gem provides a set of classes to access information on Highrise via the published API:

Comment, Company, Email, Group, Case, Membership, Note, Person, Subject, Tag, Task, User. 

All these classes are inherited from ActiveResouce::Base. Refer to the ActiveResouce documentation for more information.

Installing

gem install highrise

Dependencies (see the Rakefile or run rake check_dependencies)

Documentation

I'm on rdoc.info and here're some metrics

Configure your key

require 'rubygems'
require 'highrise'

Highrise::Base.site = 'http://your_api:login@your_site.highrisehq.com/'

or

Highrise::Base.site = 'http://your_site.highrisehq.com'
Highrise::Base.user = 'api-auth-token'

and, if you want caching:

Highrise::Base.cache_store= <your normal ActiveSupport::Caching options>

If you are using this in a Rails application, putting this code in a config/initializers/highrise.rb file is recommended. See config_initializers_highrise.rb in the examples/ directory.

Usage

@tags = Highrise::Tag.find(:all)

@people = Highrise::Person.find_all_across_pages(:params => {:tag_id => 12345})

@person.tag!("VIP")

License

This code is free to be used under the terms of the MIT license.

Bugs, Issues, Kudos and Catcalls

Comments are welcome. Send your feedback through the issue tracker on GitHub

Authors

Contributors

Shameless advertisement

This plugin is brought to you by Improve It.

Special Thanks

Rails Envy Podcast Episode #77 for mentioning How to Cache Anything With ActiveSupport on the very day I started writing the cache code. Thank you, Rein for writing an excellent tutorial and posting your source on GitHub.