Supported Operations

19.4.1.18 GetAssetListByCode

DESCRIPTION: Allows an authenticated user to retrieve the key asset data (id, code, description, marks and duration) of all assets partially/completely matching a given code.

INPUT:

_user: Login name of the executor.

_pwd: Password of the executor.

_code: Code of the target asset(s).

Example :

WARNING: The search supports using the following wildcards on the _code keyword:

%apple: Match all fields ending with the word apple (e.g. the pineapple);

apple%: Match all fields starting with the word apple (e.g. Appleton cocktail);

%: Match all assets in the database

OUTPUT: 

<asset idAsset="1" Code="1" Description="Wonderwall" Type="CLIP" TCIN="0" TCOUT="6009" Length="6009"/>
<asset idAsset="3333" Code="1094971274" Description="The New Adventures Of Old Christine" Type="PPRO" TCIN="0" TCOUT="750" Length="750"/>
<asset idAsset="3325" Code="223610848" Description="Seinfeld" Type="PPRO" TCIN="0" TCOUT="750" Length="750"/>...

XSD (XML Schema Definition)

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="WSApiResponse" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="WSApiResponse" msdata:IsDataSet="true" msdata:Locale="en-US">
  <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="Function">
        <xs:complexType>
          <xs:sequence>
            <xs:element name="asset" minOccurs="0" maxOccurs="unbounded">
              <xs:complexType>
                <xs:attribute name="idAsset" type="xs:string" />
                <xs:attribute name="Code" type="xs:string" />
                <xs:attribute name="Description" type="xs:string" />
                <xs:attribute name="Type" type="xs:string" />
                <xs:attribute name="TCIN" type="xs:string" />
                <xs:attribute name="TCOUT" type="xs:string" />
                <xs:attribute name="Length" type="xs:string" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="Name" type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
</xs:element>
</xs:schema>