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);
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
Support Staff 1 Posted by Marc Guyer on 27 Jul, 2012 07:12 PM
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:
I think that's everything. Can you tell me where you got those original require statements? I like to update those docs.
2 Posted by tommycrush on 27 Jul, 2012 08:45 PM
gah I'll try to find it. It's slipped out of my history some how.
And thanks, that resolved the issue.
3 Posted by tommycrush on 27 Jul, 2012 08:46 PM
Found it! This is the page
http://support.cheddargetter.com/kb/api-8/cheddargetter-client-libr...
Support Staff 4 Posted by Marc Guyer on 27 Jul, 2012 08:58 PM
Much appreciated.
Marc Guyer closed this discussion on 27 Jul, 2012 08:58 PM.