Skip to content
Snippets Groups Projects
Unverified Commit 093ad504 authored by Helmo's avatar Helmo
Browse files

Extra api example usage

parent d53109aa
No related branches found
No related tags found
1 merge request!1679Collection of minor cleanup commits
...@@ -16,9 +16,14 @@ try { ...@@ -16,9 +16,14 @@ try {
//* Set the function parameters. //* Set the function parameters.
$domain_id = 2; $domain_id = 2;
$domain_name = 'example.com';
// Lookup by ID.
$domain_record = $client->sites_web_domain_get($session_id, $domain_id); $domain_record = $client->sites_web_domain_get($session_id, $domain_id);
// Lookup by name.
$domain_record = $client->sites_web_domain_get($session_id, array('domain' => $domain_name));
print_r($domain_record); print_r($domain_record);
if($client->logout($session_id)) { if($client->logout($session_id)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment