Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.17 KB

forward.md

File metadata and controls

44 lines (34 loc) · 1.17 KB

Forward API

The forward API wraps the TransIP forward SOAP service.

General

The domain API is available through the Client and can be accessed by calling forward() or api('forward').

Methods

Get a list of all domain names which have the Forward option enabled.

$client->forward()->getForwardDomainNames();

Get information about a forwarded domain name.

$client->forward()->getInfo('foo.com');

Order the Forward service for a domain name.

// create Forward object
$forward = new TransIP\Model\Forward('foo.com', 'http://bar.com');
$forward->forwardEmailTo = 'foo@bar.com';

$client->forward()->order($forward);

Cancel the Forward service for a domain name.

// cancel immediately
$client->forward()->cancel('foo.com', 'immediately');

// cancel at the end of the contract
$client->forward()->cancel('foo.com', 'end');

Modify the options of a Forward service.

// create Forward object with changed fields only
$forward = new TransIP\Model\Forward('foo.com', 'http://foobar.com');

$client->forward()->modify($forward);