public array SetDomainSetup( array $domainlistArray )
Used to set domain specific settings.
[system:applyToAll]
.
Type | Parameter | Mandatory | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
integer | $partnerid | yes | Partner ID. | ||||||||||||||||||||||||||||||||||||||||||||
string | $signkey | yes | Sign key. | ||||||||||||||||||||||||||||||||||||||||||||
string | $username | yes | User name. (max. 25 characters) | ||||||||||||||||||||||||||||||||||||||||||||
string | $password | yes | Password. (max. 16 characters) | ||||||||||||||||||||||||||||||||||||||||||||
array | $domainlistArray | yes |
Array of domains:
|
Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
array |
The return value contains the following elements:
|
<?php
try {
// Create a new client by providing the endpoint to the constructor.
$client = new SoapClient(
null,
[
'location' => 'https://api.sedo.com/api/v1/',
'soap_version' => SOAP_1_1,
'encoding' => 'UTF-8',
'uri' => 'urn:SedoInterface',
'style' => SOAP_RPC,
'use' => SOAP_ENCODED,
]
);
// Set the values for the array
$params = [
'partnerid' => 1234,
'signkey' => 'abcdefghijklmnopqrstuvwxyz0123456789',
'username' => 'johndoe',
'password' => 'secret',
'startfrom' => 0,
'results' => 10,
'domainlistArray' => [
[
'domainName' => 'example.com',
'nameLanguage' => 'en',
'searchBox' => 'Y',
'disclaimer' => 'Y',
'buyBox' => 'Y'
],
[
'domainName' => 'example.net',
'nameLanguage' => 'en',
'searchBox' => 'Y',
'disclaimer' => 'Y',
'buyBox' => 'N'
]
],
];
// Call the SOAP method
$result = $client->SetDomainSetup($params);
// Display the result
print_r($result);
} catch (SoapFault $e) {
echo 'Error: '.$e->getMessage();
}
<?php
try {
// Create a new client by providing the endpoint to the constructor.
$client = new SoapClient(
null,
[
'location' => 'https://api.sedo.com/api/v1/',
'soap_version' => SOAP_1_1,
'encoding' => 'UTF-8',
'uri' => 'urn:SedoInterface',
'style' => SOAP_RPC,
'use' => SOAP_ENCODED,
]
);
// Set the values for the array
$params = [
'partnerid' => 1234,
'signkey' => 'abcdefghijklmnopqrstuvwxyz0123456789',
'username' => 'johndoe',
'password' => 'secret',
'startfrom' => 0,
'results' => 10,
'domainlistArray' => [
[
'domainName' => '[system:applyToAll]',
'nameLanguage' => 'en',
'searchBox' => 'Y',
'disclaimer' => 'Y',
'buyBox' => 'Y'
]
]
];
// Call the SOAP method
$result = $client->SetDomainSetup($params);
// Display the result
print_r($result);
} catch (SoapFault $e) {
echo 'Error: '.$e->getMessage();
}