When trying to set up the following simple example I'm seeing an error:

use FuelSdk\ET_Client;
use FuelSdk\ET_DataExtension;

$myclient = new ET_Client();

Warning: First parameter must either be an object or the name of an existing class in /src/ET_Client.php on line 269

Fatal error: Uncaught Exception: Unable to validate App Keys(ClientID/ClientSecret) provided.: Unable to validate App Keys(ClientID/ClientSecret) provided, requestToken response: in /src/ET_Client.php:282 Stack trace: #0 /var/www/html/SFMC-StarterKit/2019/src/ET_Client.php(183): FuelSdk\ET_Client->refreshToken() #1

Trying to debug this, I added a print_r inside the refreshToken function and and result of $authObject is

auth: stdClass Object ( [body] => [httpcode] => 0 ) 

Although when I print out the $jsonRequest object I am seeing the correct client Id & Secret. I have cross validated these creds using a simple postman auth request and they are working correctly there.

What am I missing to get authenticated?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.