staff
11/02/2009, 21h10
Bonsoir tout le monde ;)
j'aurai une question j'ai un espace membre et j'essaye d'utiliser l'api d'ovh pour afficher le domaine de l'utilisateur dans son espace membre.
<?php
$soap = new SoapClient('http://www.ovh.com/soapi/soapi-1.1.wsdl');
//login
try {
$login = "xxxxxx-ovh";
$password = "******";
$language = null;
$multisession = false;
$session = $soap->login($login,$password,$language,$multisession);
echo "login successfull<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
//domainInfo
try {
$result = $soap->domainInfo($session, $siteweb);
echo "domainInfo successfull<br/>";
print_r($result); // place your code here ...
echo "<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
//logout
try {
$result = $soap->logout($session);
echo "logout successfull<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
?>
Mais maintenant je voudrait récupérer les infos dans un tableau
il nous disent ceci pour le retour:
string domain : the domain creation date
string creation : the domain creation date
string modification : the domain last modification date
string expiration : the domain expiration date
string nicowner : the owner handle
string nicadmin : the admin handle
string nictech : the tech handle
string nicbilling : the billing handle
string authinfo : le 'authinfo' si le domaine est dévérrouillé (gTlds)
nsStruct[] dns : an array of ns structure
Comment afficher(récupérer) par exemple la date de création dans mon tableau.
Merci pour vos réponse
j'aurai une question j'ai un espace membre et j'essaye d'utiliser l'api d'ovh pour afficher le domaine de l'utilisateur dans son espace membre.
<?php
$soap = new SoapClient('http://www.ovh.com/soapi/soapi-1.1.wsdl');
//login
try {
$login = "xxxxxx-ovh";
$password = "******";
$language = null;
$multisession = false;
$session = $soap->login($login,$password,$language,$multisession);
echo "login successfull<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
//domainInfo
try {
$result = $soap->domainInfo($session, $siteweb);
echo "domainInfo successfull<br/>";
print_r($result); // place your code here ...
echo "<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
//logout
try {
$result = $soap->logout($session);
echo "logout successfull<br/>";
} catch(SoapFault $fault) {
echo "Error : ".$fault;
}
?>
Mais maintenant je voudrait récupérer les infos dans un tableau
il nous disent ceci pour le retour:
string domain : the domain creation date
string creation : the domain creation date
string modification : the domain last modification date
string expiration : the domain expiration date
string nicowner : the owner handle
string nicadmin : the admin handle
string nictech : the tech handle
string nicbilling : the billing handle
string authinfo : le 'authinfo' si le domaine est dévérrouillé (gTlds)
nsStruct[] dns : an array of ns structure
Comment afficher(récupérer) par exemple la date de création dans mon tableau.
Merci pour vos réponse