Name

Bod::CRM

Synopsis

Bod::CRM provides simple methods to access the Lets Delight CRM.

        use Bod::CRM;
        
        my $crm = Bod::CRM->new();
        my $vars = {
                'firstname'     => 'John',
                'lastname'      => 'Smith',
                'pri_email'     => 'john.smith@example.com',
        };
        $crm->add($vars);
        
        my $vars = {
                'firstname'     => 'John',
        };
        my @contacts = $crm->find($vars);
        
        print $crm->error;

Error Handling

Except where otherwise documented, methods return zero to indicate an error. The error message can be found by calling the error() method.

Description

new(environment);

error();

find(fields, blanks);

get(id);

add(fields);

business(person, business, subscribe)

marketing(person, business, permission, grant)