API Error: User does not have access to productCode=b98dab0b71d2ff_etcSecret Key

David Dalcu's Avatar

David Dalcu

19 Apr, 2012 02:02 AM

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.

  1. 1 Posted by David Dalcu on 19 Apr, 2012 02:50 AM

    David Dalcu's Avatar

    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');

  2. Marc Guyer closed this discussion on 19 Apr, 2012 06:41 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

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM