API Error: User does not have access to productCode=b98dab0b71d2ff_etcSecret Key
I am getting this error when I try to use the API.
I am using the correct user/pass
<?php
require('CheddarGetter/Client.php');
require('CheddarGetter/Client/Exception.php');
require('CheddarGetter/Client/AdapterInterface.php');
require('CheddarGetter/Client/CurlAdapter.php');
require('CheddarGetter/Response.php');
require('CheddarGetter/Response/Exception.php');
require('CheddarGetter/Http/AdapterInterface.php');
require('CheddarGetter/Http/NativeAdapter.php');
$client = new CheddarGetter_Client('https://cheddargetter.com', '[email blocked]', 'myPass', 'b98dab0b71d2ff_etcSecret Key');
$customers = $client->getCustomers();
print_r($customers->toArray());
echo $customers->toJson();
?>
Fatal error: Uncaught exception 'CheddarGetter_Response_Exception' with message 'User does not have access to productCode=b98dab0b71d
I made a different user under "manage users" and the new admin user gets the same error also.
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
1 Posted by David Dalcu on 19 Apr, 2012 02:50 AM
Oh, it seems productCode is the actual name of your application/product , not your secret key.
This was a bit confusing.
$client = new CheddarGetter_Client('https://cheddargetter.com', '***@gmail.com', 'myPass', 'MY_PRODUCT');
Marc Guyer closed this discussion on 19 Apr, 2012 06:41 PM.