I have downloaded the latest mailWizz Api, and installed it on our web-server. When trying to run
/mailwizzApi/examples/setup.php
It does not seem to do anything - I get a blank white page.
My directory structure is as follows
<root>:/mailwizz
<root>/mailwizzApi
<root>/mailwizzApi/examples
<root>/mailwizzApi/MailWizzApi
On the setup.php when I echo:-
require_once dirname(__FILE__) . '/../MailWizzApi/Autoloader.php';
I get
/var/www/html/mydomain.com/mailwizzApi/examples/../MailWizzApi/Autoloader.php
Which did not seem right, so I corrected it to
require_once ('../MailWizzApi/Autoloader.php');
Which loads the auto-loader
// configuration object from examples/setup.php
$config = new MailWizzApi_Config(array(
'apiUrl' => 'http://www.mydomain.com/mailwizz/api',
'publicKey' => 'PUBLIC-KEY',
'privateKey' => 'PRIVATE-KEY',
// components
'components' => array(
'cache' => array(
'class' => 'MailWizzApi_Cache_File',
'filesPath' => '../MailWizzApi/Cache/data/cache', // make sure it is writable by webserver
)
),
));
I have made cache directory writable with # chmod -R 777 cache
I have tried to use publicKey & privateKey from the installation, no difference
Any pointers how to get the API examples going?
Thank you.
/mailwizzApi/examples/setup.php
It does not seem to do anything - I get a blank white page.
My directory structure is as follows
<root>:/mailwizz
<root>/mailwizzApi
<root>/mailwizzApi/examples
<root>/mailwizzApi/MailWizzApi
On the setup.php when I echo:-
require_once dirname(__FILE__) . '/../MailWizzApi/Autoloader.php';
I get
/var/www/html/mydomain.com/mailwizzApi/examples/../MailWizzApi/Autoloader.php
Which did not seem right, so I corrected it to
require_once ('../MailWizzApi/Autoloader.php');
Which loads the auto-loader
// configuration object from examples/setup.php
$config = new MailWizzApi_Config(array(
'apiUrl' => 'http://www.mydomain.com/mailwizz/api',
'publicKey' => 'PUBLIC-KEY',
'privateKey' => 'PRIVATE-KEY',
// components
'components' => array(
'cache' => array(
'class' => 'MailWizzApi_Cache_File',
'filesPath' => '../MailWizzApi/Cache/data/cache', // make sure it is writable by webserver
)
),
));
I have made cache directory writable with # chmod -R 777 cache
I have tried to use publicKey & privateKey from the installation, no difference
Any pointers how to get the API examples going?
Thank you.