API Doesn't work

Recif

New Member
Hello,
I setup API, in the setup.php I put URL to api, public and provate keys. But I have error on my tests:

Error:
Code:
MailWizzApi_Params Object
(
    [_data:MailWizzApi_Params:private] => Array
        (
            [status] => error
            [error] => Invalid API request signature. Please refer to the documentation.
        )

    [_readOnly:MailWizzApi_Params:private] =>
)
My setup.php:

PHP:
// require the setup which has registered the autoloader
require_once dirname(__FILE__) . '/setup.php';

// CREATE THE ENDPOINT
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();


// ADD SUBSCRIBER
$response = $endpoint->create('1', array(
    'EMAIL'    => 'seo@rxxxxt.com', // the confirmation email will be sent!!! Use valid email address
    'FNAME'    => 'John',
    'LNAME'    => 'Doe'
));

// SEARCH BY EMAIL
$response = $endpoint->emailSearch('1', 'service@xxxx.com');

// DISPLAY RESPONSE
echo '<hr /><pre>';
print_r($response->body);
echo '</pre>';
Any idea?
 

Recif

New Member
I found this is the $signatureHash !== $signature which is returning error. But I've checked several times, the public et private keys are ok, so I don't understand what is wrong!...
 
Top