Project

method_crm

0.0
No commit activity in last 3 years
No release in over 3 years
A ruby wrapper for the MethodCRM API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 2.12
~> 1.6.0
~> 1.6.0

Runtime

 Project Readme

MethodCrm

A ruby wrapper for the MethodCRM API

A complete list of service methods can be found here: https://www.methodintegration.com/MethodAPI/service.asmx. For this gem the V2 version of methods is assumed.

Usage

client = MethodClient.new('Company', 'username', 'P@SSw0rd')

client.table_list
 => ["Account", "AccountAccountType", ... "VendorCreditLineItem", "VendorType"]

client.table_list(:detailed)
 => [
      [  0] {
             "TableName" => "Account",
           "SupportsAdd" => "true",
          "SupportsEdit" => "true"
      },
      [  1] {
             "TableName" => "AccountAccountType",
           "SupportsAdd" => "false",
          "SupportsEdit" => "false"
      },
      ...
      [155] {
             "TableName" => "VendorCreditLineItem",
           "SupportsAdd" => "true",
          "SupportsEdit" => "true"
      },
      [156] {
             "TableName" => "VendorType",
           "SupportsAdd" => "true",
          "SupportsEdit" => "false"
      }
    ]

Installation

Add this line to your application's Gemfile:

gem 'method_crm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install method_crm

Contributing

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