Skip to content
smallfri edited this page Nov 16, 2015 · 6 revisions

Installation

  1. To get started, download this SDK and upload it to your server.
  2. Open the file /examples/setup.php.
  3. 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
        )
    ),
));