Bonjour,
Voilà déjà 2 jours que je me casse la tête avec l'api OVH.
J'ai importé le webservice dans mon projet, sans soucis. J'ouvre ma session avec le code :
Jusque là pas de probléme, je récupére bien la session.Code:SessionOVH est chaîne = managerService.login("lmXXXXX-ovh","password","FR",Vrai)
Je souhaite donc obtenir les infos d'un domaine via la fonction domainInfo.
Dans la doc d'OVH voici la description de la fonction :
Pour nsStruct, voici la description :Citation:
domainInfo
domainInfoReturndomainInfo ( stringsession, stringdomain )
Description
domainInfo get all informations about a domain name
Quota de requêtes
60 queries per minute
10 queries per minute for the same domain name
Paramètres
stringsession : the session id
stringdomain : the domain name
Retour
stringdomain : the domain creation date
stringcreation : the domain creation date
stringmodification : the domain last modification date
stringexpiration : the domain expiration date
stringnicowner : the owner handle
stringnicadmin : the admin handle
stringnictech : the tech handle
stringnicbilling : the billing handle
stringauthinfo : the authinfo if the domain is unlocked
nsStruct[] dns : an array of ns structure
Ma traduction en WLanguage :Citation:
struct nsStruct : a single nameserver structure
stringname : the nameserver name
stringip : the nameserver ip
A l'éxécution voici l'erreur :Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 nsStruct est une structure name est chaîne ip est chaîne FIN STDomainInfo est une structure domain est une chaîne creation est une chaîne modification est une chaîne expiration est une chaîne nicowner est chaîne nicadmin est chaîne nictech est chaîne nicbilling est chaîne gauthinfo est chaîne Dns est un tableau de nsStruct FIN InfosDomaine est un STDomainInfo InfosDomaine = managerService.domainInfo(SessionOVH,"domaine.com")
En parcourant les forums, j'ai testé plusieurs choses dont la fonction Transfert mais sans succés.Citation:
On ne peut pas affecter à une structure autre chose qu'une structure de même définition.
Quelqu'un peut-il m'aider ?
Merci beaucoup