Class 'CheddarGetter_Client_CurlAdapter' not found

PHP Fatal error: Class 'CheddarGetter_Client_CurlAdapter' not found in CheddarGetter/Client.php on line 87

this is my code

require('Client.php');
require('Client/Exception.php');
require('Response.php');
require('Response/Exception.php');

$CG = new CheddarGetter_Client(

'https://cheddargetter.com/',
'[redacted]',
'[redacted]',
'[redacted]'

);

$data = array(
    'code'      => 'BUSINESS_'.$business_id,
    'firstName' => $user["first_name"],
    'lastName'  => $user["last_name"],
    'email'     => $user["email"],
    'subscription' => array(
        'planCode'      => '050_CUSTOMERS'
    )
);
$customer = $CG->newCustomer($data);
  1. Hi Tommy -- There've been some changes to the wrapper since the docs that show the include files. You'll also need to include some other classes:

    require('CheddarGetter/Http/AdapterInterface.php');
    require('CheddarGetter/Http/NativeAdapter.php');
    require('CheddarGetter/Client/AdapterInterface.php');
    require('CheddarGetter/Client/CurlAdapter.php');
    

    I think that's everything. Can you tell me where you got those original require statements? I like to update those docs.

  2. gah I'll try to find it. It's slipped out of my history some how.

    And thanks, that resolved the issue.

  3. Much appreciated.

  4. Marc Guyer closed this discussion on 27 Jul, 2012 08:58 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions