Sha256: ca27f21c1930f29a024375329a460d773852244b6225d57bd46acf36fcefda7f

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

= SugarCRM

* http://github.com/chicks/sugarcrm

REST Bindings for SugarCRM!  

== SUMMARY: 

RubyGem for interacting with SugarCRM via REST.  

== Description:

I've implemented all of the basic API calls that SugarCRM supports, and am actively building an abstraction layer
on top of the basic API methods.  The end result will be to provide ActiveRecord style finders and first class
objects.  Some of this functionality is included today. 

== FEATURES/PROBLEMS:

* Auto-generation of Module specific objects.  When a connection is established, get_available_modules is called and the resultant modules are turned into SugarCRM::Module classes.  
* If you just want to use the vanilla API, you can access the methods directly on the connection object.

== SYNOPSIS:

  require 'sugarcrm'
  # Establish a connection
  sugarcrm = SugarCRM::Base.establish_connection("http://localhost/sugarcrm", 'user', 'password', {:debug => false})

  # Retrieve a user by ID, using the SugarCRM::User Proxy object
  SugarCRM::User.find(id)
  
  # Show a list of available modules
  sugarcrm.connection.modules

  # Lookup a user by name.  Find any associated accounts
  sugarcrm.connection.get_entry_list(
    "Users",
    "users.user_name = \'#{USER}\'",
    {
      :fields => ["first_name", "last_name"],
      :link_fields => [
        {
          "name"  => "accounts",
          "value" => ["id", "name"]
        }
      ]          
    } 
  )

== REQUIREMENTS:

* activesupport gem
* json gem

== INSTALL:

* sudo gem install sugarcrm

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Carl Hicks. See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sugarcrm-0.6.2 README.rdoc
sugarcrm-0.6.1 README.rdoc