team_set_contact (session, team)

team_set_contact (session, team)

team_set_contact (session,  team)

Method Name

team_set_contact

Description

Saves image ID’s, addresses and contact data of team

Input

session: Session

team: XML with team contact data and addresses and image ID’s. The XML object, can be obtained calling the team_get_contact() function previosly

Output

result: Empty

ErrorMsg:  Error message if the process fails

Request Sample

team_set_contact (“LC53060c6f729de8.42629546”,

<contact>
   <ref>1</ref>
   <pictures>
      <image>
         <ref>1</ref>
      </image>
      <insignia>
         <ref>2</ref>
      </insignia>
   </pictures>
   <address>
      <kind>Main Address</kind>
      <street />
      <number />
      <floor />
      <suite />
      <city />
      <postcode />
      <state />
      <country />
      <source />
      <description>address</description>
      <comment />
   </address>
   <addresses>
      <address>
         <kind>Main Address</kind>
         <street>c/ Tirso de Molina 100 (Despacho 2D)</street>
         <number />
         <floor />
         <suite />
         <district />
         <city>Cornellá de Llobregat</city>
         <postcode>08940</postcode>
         <state>Barcelona</state>
         <country>España</country>
         <source />
         <description>address</description>
         <comment />
      </address>
   </addresses>
  <channels>
   <phones>
      <phone>
         <type>ext</type>
         <value />
         <comment />
         <description>Ext.</description>
         <source />
         <preferred>false</preferred>
      </phone>
      <phone>
         <type>home</type>
         <value>HomeNumber</value>
         <comment />
         <description>Casa</description>
         <source />
         <preferred>false</preferred>
      </phone>
      <phone>
         <type>work</type>
         <value />
         <comment />
         <description>Treball</description>
         <source />
         <preferred>false</preferred>
      </phone>
   </phones>
   <mails>
      <mail>
         <type>work</type>
         <value />
         <comment />
         <description>Treball</description>
         <source />
         <preferred>false</preferred>
      </mail>
   </mails>
   <webs>
      <web>
         <type>work</type>
         <value />
         <comment />
         <description>www.linkcare.es</description>
         <source />
         <preferred>false</preferred>
      </web>
   </webs>
   <aims>
      <aim>
         <type>Skype</type>
         <value/>
         <comment />
         <description>Skype</description>
         <source />
         <preferred>false</preferred>
      </aim>
   </aims>
</channels>
</contact>

)

Response Sample

<result></result>

<ErrorMsg></ErrorMsg>