no redirect when i use form integration

Hi (and up)

Got the same issue on my API tests !

Code :
PHP:
// configuration object
$config = new MailWizzApi_Config(array(
    'apiUrl'        => $conf['apiUrl'],
    'publicKey'     => $conf['publicKey'],
    'privateKey'    => $conf['privateKey'],
  
    // components
    'components' => array(
        'cache' => array(
            'class'     => 'MailWizzApi_Cache_File',
            'filesPath' => $conf['baseDir'] . '/SDK/MailWizzApi/Cache/data/cache', // make sure it is writable by webserver
        )
    ),
));

// now inject the configuration and we are ready to make api calls
MailWizzApi_Base::setConfig($config);

// start UTC
date_default_timezone_set('UTC');

PHP:
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();
$response = $endpoint->getSubscriber('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID');

// DISPLAY RESPONSE
echo '<hr /><pre>';
var_dump($response->body);
echo '</pre>';

Result (dump) :
Code:
object(MailWizzApi_Params)#16 (2) {
  ["_data":"MailWizzApi_Params":private]=>
  array(2) {
    ["status"]=>
    string(5) "error"
    ["error"]=>
    string(15) "Page not found."
  }
  ["_readOnly":"MailWizzApi_Params":private]=>
  bool(false)
}

I still search, but if you got a idea..

EDIT : No problem with the API / Login, i can easily create a customer with MailWizzApi_Endpoint_Customers()
Result is successful !
 
Back
Top