I simply cannot seem to get authenticated. I've copied/pasted the ID and secret. No go.
Fatal error: Uncaught exception 'Exception' with message 'Unable to validate App Keys(ClientID/ClientSecret) provided.: Unable to validate App Keys(ClientID/ClientSecret) provided, requestToken response:{"message":"Unauthorized","errorcode":1,"documentation":""}' in /path/to/api/exacttarget/ET_Client.php on line 144
I can't even get past the construction of the class, so no need to include code! Here is the config:
<?php
return array(
'appsignature' => 'none',
'clientid' => 'xxxxxx',
'clientsecret' => 'xxxxxx',
'defaultwsdl' => 'https://webservice.exacttarget.com/etframework.wsdl',
'xmlloc' => __DIR__.'/wsdl/ExactTargetWSDL.xml',
);
Right before it does the POST, I can dump:
var_dump($url, json_encode($jsonRequest)); exit;
and get
string 'https://auth.exacttargetapis.com/v1/requestToken?legacy=1'
string '{"clientId":"xxxxxxx","clientSecret":"xxxxxxx","accessType":"offline"}'
If I provide an App Center Application ID, would that help? Am I going to the right auth server? My Authentication Target is PS
TIA, Mark