List of Domains
<?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',
'domainlist' => ['example.com', 'example.com'],
];
// Call the SOAP method
$result = $client->GetDomainSetup($params);
// Display the result
print_r($result);
} catch (SoapFault $e) {
echo 'Error: '.$e->getMessage();
}
Whole Account
<?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,
];
// Call the SOAP method
$result = $client->GetDomainSetup($params);
// Display the result
print_r($result);
} catch (SoapFault $e) {
echo 'Error: '.$e->getMessage();
}