Skip to content

Commit 093ad50

Browse files
committed
Extra api example usage
1 parent d53109a commit 093ad50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

remoting_client/examples/sites_web_domain_get.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@
1616

1717
//* Set the function parameters.
1818
$domain_id = 2;
19+
$domain_name = 'example.com';
1920

21+
// Lookup by ID.
2022
$domain_record = $client->sites_web_domain_get($session_id, $domain_id);
2123

24+
// Lookup by name.
25+
$domain_record = $client->sites_web_domain_get($session_id, array('domain' => $domain_name));
26+
2227
print_r($domain_record);
2328

2429
if($client->logout($session_id)) {

0 commit comments

Comments
 (0)