public array DisplayPortfolioDomains( array $entries )
Returns all domains in one portfolio.
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) |
string | $portfolioname | yes | Name of existing portfolio. |
integer | $rows | yes | Maximum number of results to be returned. |
integer | $offset | yes | Start position. |
integer | $orderby | no |
Order of the result:0 - by name (default)1 - by inserted date
|
integer | $direction | no |
Direction of the order:0 - ascending (default)1 - descending
|
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',
'portfolioname' => 'example',
'rows' => 10,
'offset' => 0,
'orderby' => 1,
'direction' => 1,
];
// Call the SOAP method
$result = $client->DisplayPortfolioDomains($params);
// Display the result
while (list ($key, $val) = each($result)) {
echo "$key => $val<br>\n";
}
} catch (SoapFault $e) {
echo 'Error: '.$e->getMessage();
}