30, 'connect_timeout' => 5, ]); // Create a new attached domain $conn = new Api( $applicationKey, $applicationSecret, $endpoint, $consumer_key, $http_client); try { $attachedDomainsIds = $conn->get('/hosting/web/' . $domain . '/attachedDomain'); foreach( $attachedDomainsIds as $attachedDomainsId) { $attachedDomain = $conn->get('/hosting/web/' . $domain . '/attachedDomain/' . $attachedDomainsId ); print_r( $attachedDomain ); } } catch ( Exception $ex ) { print_r( $ex->getMessage() ); } ?>