The forward API wraps the TransIP forward SOAP service.
The domain API is available through the Client
and can be accessed by calling forward()
or api('forward')
.
$client->forward()->getForwardDomainNames();
$client->forward()->getInfo('foo.com');
// create Forward object
$forward = new TransIP\Model\Forward('foo.com', 'http://bar.com');
$forward->forwardEmailTo = 'foo@bar.com';
$client->forward()->order($forward);
// cancel immediately
$client->forward()->cancel('foo.com', 'immediately');
// cancel at the end of the contract
$client->forward()->cancel('foo.com', 'end');
// create Forward object with changed fields only
$forward = new TransIP\Model\Forward('foo.com', 'http://foobar.com');
$client->forward()->modify($forward);