My code snippet
require('exacttarget_soap_client.php');
$wsdl = 'https://webservice.exacttarget.com/etframework.wsdl';
try {
@$client = new ExactTargetSoapClient($wsdl, array('trace'=>1));
$client->username = '*****';
$client->password = '******';
$param = new ExactTarget_VersionInfoRequestMsg();
$param->IncludeVersionHistory = True;
$results = $client->VersionInfo($param);
var_dump($results);
}catch (SoapFault $e) {
var_dump($e);
}
Its getting the error:
["message":protected]=>
string(19) "User not authorized"
["string":"Exception":private]=>
string(0) ""
["code":protected]=>
I am able to login https://*.exacttarget.com/hub/ using these credential. Its wroking fine. But when I am using API Code it give the above error.