getAssetCounts
Gets the assets and the number of assets associated with a specific company.
The countArray
returned consists of an array of assetTypes
(data type xsd:string
), each with its own count field (data type xsd:int
), allowing the representation of multiple asset types per element of the array.
Syntax
Authorized User Types
IpsUser
IpsAdmin
IpsCompanyAdmin
TrialSiteAdmin
TrialSiteUser
ImagePortalAdmin
ImagePortalUser
ImagePortalContrib
ImagePortalContribUser
Parameters
Input (getAssetCountsParam)
Name
Type
Required
Description
companyHandle
xsd:string
Yes
The handle to the company with assets you want to count.
Output (getAssetCountsReturn)
Name
Type
Required
Description
countArray
types:AssetCountArray
No
An array of asset types, each with its own count field, allowing the representation of multiple asset types per element of the array.
Examples
This code sample uses the company’s handle as a field in the getAssetCountsParam
sent to the IPS Web services server in order to get the asset counts.
Request
<getAssetCountsParam xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
<companyHandle>c|6</companyHandle>
</getAssetCountsParam>
Response
<getAssetCountsReturn xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
<countArray>
<items>
<assetType>Image</assetType>
<count>44</count>
</items>
<items>
<assetType>Flash</assetType>
<count>3</count>
</items>
</countArray>
</getAssetCountsReturn>
4e9b9d8c-5839-4215-aa35-01b652869681