The EmailOne SDK for php enables developers to easily work with EmailOne.
- To get started, download this SDK and upload it to your server.
- Open /examples/setup.php.
- In the following code, insert your public and private api key, available here
$config = new EmailOneApi_Config(array(
'apiUrl' => 'http://www.emailone.net/api',
'publicKey' => 'YOUR_PUBLIC_KEY',
'privateKey' => 'YOUR_PRIVATE_KEY',
'components' => array(
'cache' => array(
'class' => 'EmailOneApi_Cache_File',
'filesPath' => dirname(__FILE__) . '/../EmailOneApi/Cache/data/cache', // make sure it is writable by webserver
)
),
));
See the examples in the wiki for more information.