Documentation de service Web / Catégories / Services de compte de base / Récupérer le compte
Mise à jour le 22 février 2021
Ce service Web récupère votre information de compte, notamment votre nom d'utilisateur, votre mot de passe, et vos coordonnées.
22.0
GET
/account
Nom du champ | Valeur | Commentaires |
---|---|---|
Autorisation | Basic authentifiant |
Oui
Aucun
Demande/réponse | Nom de schéma |
---|---|
Demande | Aucun |
Réponse | account.xsd |
L'exemple suivant montre la récupération de votre compte.
GET /account
L'exemple affiche votre information de compte.
<?xml version="1.0" encoding="UTF-8"?>
<account>
<id>68001</id>
<username>acme_dx_user</username>
<password>********</password>
<webserviceUser>true</webserviceUser>
<searchable>true</searchable>
<billboardMetric>score</billboardMetric>
<languagePreference>en_US</languagePreference>
<contact>
<firstName>John</firstName>
<lastName>Doe</lastName>
<address address1="123 Main St" city="Arlington" state="VA" postalCode="22201" country="US"/>
<email>john_doe@acme.com</email>
<jobTitle>Building Administrator Data Exchange User</jobTitle>
<phone>703-555-2121</phone>
</contact>
<organization name="ACME Corporation">
<primaryBusiness>Other</primaryBusiness>
<otherBusinessDescription>other</otherBusinessDescription>
<energyStarPartner>true</energyStarPartner>
<energyStarPartnerType>Service and Product Providers</energyStarPartnerType>
</organization> <includeTestPropertiesInGraphics>true</includeTestPropertiesInGraphics>
</account>
Dans l’exemple suivant, les informations de votre compte sont affichées. Si le compte appartient à une entité canadienne, un paramètre de préférences courriel (PreferenceCourrielCompteCanadien) est inclus afin d’indiquer si le compte peut recevoir des informations ENERGY STAR de la part de Ressources naturelles Canada (RNCan).
<?xml version="1.0" encoding="UTF-8"?>
<account>
<id>68001</id>
<username>acme_dx_user</username>
<password>********</password>
<webserviceUser>true</webserviceUser>
<searchable>true</searchable>
<billboardMetric>score</billboardMetric>
<languagePreference>fr_CA</languagePreference>
<contact>
<firstName>John</firstName>
<lastName>Doe</lastName>
<address address1="123 Main St" city="Edmonton" state="AB" postalCode="T5G 2S7" country="CA"/>
<email>john_doe@acme.com</email>
<jobTitle>Building Administrator Data Exchange User</jobTitle>
<phone>703-555-2121</phone>
</contact>
<organization name="ACME Corporation">
<primaryBusiness>Other</primaryBusiness>
<otherBusinessDescription>other</otherBusinessDescription>
<energyStarPartner>true</energyStarPartner>
<energyStarPartnerType>Service and Product Providers</energyStarPartnerType>
</organization> <includeTestPropertiesInGraphics>true</includeTestPropertiesInGraphics>
<emailPreferenceCanadianAccount>true</emailPreferenceCanadianAccount>
</account>