Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP client for CommunigateAPI

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

CommunigateAPI

Basic API object for Communigate Mail Server.

$api = new Api(array(
    'host' => '127.0.0.1',
    'login' => 'admin@example.com',
    'password' => 'password'
));

// Get all available domains
$api->get_domains();

// Get all available accounts
$api->get_accounts('example.com');

// Create and remove accounts
$api->create_account('example.com', 'test', 'password');
$api->delete_account('example.com', 'test');

// Set and remove email redirect
$api->set_email_redirect('example.com', 'test', 'dev@null.com');
$api->clear_email_redirect('example.com', 'test');
Something went wrong with that request. Please try again.