Webservice Apimo Extranet

Le webservice Apimo Extranet a pour but d'offrir un service client à travers votre base de donnée Apimo,
idéal pour informer vos clients du suivi des ventes, visites, parutions ...

Général
Format : XML
Codage : UTF-8
En-tête : <?xml version="1.0" encoding="UTF-8"?>
Multilangue : le fichier respect les principes de I18N et l10N, exemple : un francophone en France : fr_FR, un francophone au Canada : fr_CA, un anglophone au Etats-Unis : en_US http://fr.wikipedia.org/wiki/Internationalisation_de_logiciel
Compression : aucune

Connexion
La connexion se fait à l'aide d'une requête http sur l'adresse :
[SERVEUR]/ws.php/extranet/contact/user/[LOGIN]/password/[PASS]
Le login est attribué par APIMO, le mot de passe est configuré par l'agent immobilier

Description fichier XML de connexion
contact : le noeud du contact

  • authorization : 0 si authentification refusé faux - 1 si authentifié
  • id : sa référence client unique
  • firstname : Prénom
  • lastname : Nom de famille
  • agency : nom de l'agence

id : référence unique de l'agence

... (en cours)

Exemple

<contact>
  <authorization>1</authorization>
  <id>9440</id>
  <lastname>MARTIN</lastname>
  <firstname>Jean</firstname>
  <agency id="107">
    <name>Mon agence</name>
    <address1>345, Av des Champs-Élysées</address1>
    <address2></address2>
    <zipcode>75008</zipcode>
    <city>PARIS</city>
    <phone>01 45 01 01 XX</phone>
    <mail>email@monagence.com</mail>
  </agency>
  <sales num="2">
    <sale id="18118">
      <reference>454</reference>
      <type>1</type>
      <type_specific>5</type_specific>
      <city>PARIS</city>
      <zipcode>75001</zipcode>
      <price>200000</price>
      <parts>0</parts>
      <pictures>
        <picture id="131384" rank="0">
          <link protocol="http" size="100">http://[SERVEUR]/uploads/estate_pictures/18987/163497963948c51488814b90.80627002_100.jpg</link>
          <link protocol="http" size="400">http://[SERVEUR]/uploads/estate_pictures/18987/163497963948c51488814b90.80627002_400.jpg</link>
          <link protocol="http" size="800">http://[SERVEUR]/uploads/estate_pictures/18987/163497963948c51488814b90.80627002_800.jpg</link>
          <comment lang="fr_FR"><![CDATA[chambre principale]]></comment>
        </picture>
        <picture id="58687" rank="1">
          <link protocol="http" size="100">http://[SERVEUR]/uploads/estate_pictures/18987/130377932048901b8c83a944.77529744_100.jpg</link>
          <link protocol="http" size="400">http://[SERVEUR]/uploads/estate_pictures/18987/130377932048901b8c83a944.77529744_400.jpg</link>
          <link protocol="http" size="800">http://[SERVEUR]/uploads/estate_pictures/18987/130377932048901b8c83a944.77529744_800.jpg</link>
          <comment lang="fr_FR"><![CDATA[vue du salon]]></comment>
        </picture>
      </pictures>
      <comments>
        <comment lang="fr_FR"><![CDATA[Très bel appartmenet à saisir !]]></comment>
        <comment lang="en_GB"><![CDATA[]]></comment>
        <comment lang="de_DE"><![CDATA[]]></comment>
        <comment lang="it_IT"><![CDATA[]]></comment>
        <comment lang="es_ES"><![CDATA[]]></comment>
      </comments>
      <visits num="1">
        <visit id="1456">
          <type>1</type>
          <visited_at>2008-09-03 09:00:00</visited_at>
          <comment><![CDATA[Trop petit, souhaite quand même revisiter]]></comment>
        </visit>
      </visits>
      <pubs num="1">
        <pub id="1373">
          <provider>Magazine Immo</provider>
          <publicated_at>2008-09-12</publicated_at>
          <comment><![CDATA[Page 18 du Magazine Immo de mars]]></comment>
        </pub>
      </pubs>
    </sale>
    <sale id="11966">
      <reference>MAN122</reference>
      <type>1</type>
      <type_specific>26</type_specific>
      <city>PARIS</city>
      <zipcode>75000</zipcode>
      <price>250000</price>
      <parts>2</parts>
      <pictures>
        <picture id="47301" rank="">
          <link protocol="http" size="100">http://[SERVEUR]/uploads/estate_pictures/12334/24476348848035e85d16130.50804850_100.jpg</link>
          <link protocol="http" size="400">http://[SERVEUR]/uploads/estate_pictures/12334/24476348848035e85d16130.50804850_400.jpg</link>
          <link protocol="http" size="800">http://[SERVEUR]/uploads/estate_pictures/12334/24476348848035e85d16130.50804850_800.jpg</link>
          <comment lang="fr_FR"><![CDATA[]]></comment>
        </picture>
        <picture id="47300" rank="">
          <link protocol="http" size="100">http://[SERVEUR]/uploads/estate_pictures/12334/181057202648035e8f6172c0.20418167_100.jpg</link>
          <link protocol="http" size="400">http://[SERVEUR]/uploads/estate_pictures/12334/181057202648035e8f6172c0.20418167_400.jpg</link>
          <link protocol="http" size="800">http://[SERVEUR]/uploads/estate_pictures/12334/181057202648035e8f6172c0.20418167_800.jpg</link>
          <comment lang="fr_FR"><![CDATA[]]></comment>
        </picture>
      </pictures>
      <comments>
        <comment lang="fr_FR"><![CDATA[Très bel appatement. Parfait pour une première acquisition]]></comment>
        <comment lang="en_GB"><![CDATA[]]></comment>
        <comment lang="de_DE"><![CDATA[]]></comment>
        <comment lang="it_IT"><![CDATA[]]></comment>
        <comment lang="es_ES"><![CDATA[]]></comment>
      </comments>
      <visits num="1">
        <visit id="1390">
          <type>1</type>
          <visited_at>2008-07-01 00:00:00</visited_at>
          <comment><![CDATA[a apprécié la vue mais le trouve encore trop cher]]></comment>
        </visit>
      </visits>
      <pubs num="1">
        <pub id="1327">
          <provider>mag immo</provider>
          <publicated_at>2008-07-01</publicated_at>
          <comment><![CDATA[page 12]]></comment>
        </pub>
      </pubs>
    </sale>
  </sales>
  <rents num="2">
    <rent id="333">
      <reference>L78</reference>
      <type>1</type>
      <type_specific>20</type_specific>
      <city>NICE</city>
      <zipcode>06000</zipcode>
      <price>450</price>
      <parts>1</parts>
      <pictures>
      </pictures>
      <comments>
        <comment lang="fr_FR"><![CDATA[test]]></comment>
        <comment lang="en_GB"><![CDATA[]]></comment>
        <comment lang="de_DE"><![CDATA[]]></comment>
        <comment lang="it_IT"><![CDATA[]]></comment>
        <comment lang="es_ES"><![CDATA[]]></comment>
      </comments>
    </rent>
  </rents>
  <searches num="2">
    <search id="1232">
      <nature>1</nature>
      <type>1</type>
      <cities>ANTIBES </cities>
      <parts>1</parts>
      <area_min>10</area_min>
      <area_max>200</area_max>
      <price_min>100000</price_min>
      <price_max>800000</price_max>
    </search>
    <search id="1221">
      <nature>2</nature>
      <type>2</type>
      <cities>NICE </cities>
      <parts>2</parts>
      <area_min>20</area_min>
      <area_max>30</area_max>
      <price_min>1000</price_min>
      <price_max>1600</price_max>
    </search>
  </searches>
</contact>