Sha256: 31f3d2a8303acff1f4dbdd4fa13d621b8152d7f077c204724758f4426c03ee70

Contents?: true

Size: 1.55 KB

Versions: 5

Compression:

Stored size: 1.55 KB

Contents

# 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](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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
method_crm-0.2.2 README.md
method_crm-0.2.1 README.md
method_crm-0.2.0 README.md
method_crm-0.1.0 README.md
method_crm-0.0.1 README.md