getAssetCounts getassetcounts

取得與特定公司相關聯的資產和資產數目。

countArray 傳回的由以下陣列組成: assetTypes (資料型別 xsd:string),每個都有自己的計數欄位(資料型別) xsd:int),可呈現陣列中每個元素的多重資產型別。
語法

授權的使用者型別 section-6234754722184e828352f10eb18fbce9

  • IpsUser
  • IpsAdmin
  • IpsCompanyAdmin
  • TrialSiteAdmin
  • TrialSiteUser
  • ImagePortalAdmin
  • ImagePortalUser
  • ImagePortalContrib
  • ImagePortalContribUser

參數 section-2a9581315eca427d8a3d26cc3fca7b1f

輸入(getAssetCountsParam)

名稱
類型
必要
說明
companyHandle
xsd:string
擁有您要計算之資產的公司的控制代碼。

輸出(getAssetCountsReturn)

名稱
類型
必要
說明
countArray
types:AssetCountArray
一個資產型別陣列,每個資產型別都有自己的計數欄位,可讓陣列中每個元素呈現多個資產型別。

範例 section-6052a503eb3843f6adb99e200fdba280

此程式碼範例使用公司的控制代碼作為 getAssetCountsParam 傳送至IPS Web服務伺服器,以取得資產計數。

請求

<getAssetCountsParam xmlns="http://www.scene7.com/IpsApi/xsd/2008-01-15">
   <companyHandle>c|6</companyHandle>
</getAssetCountsParam>

回答

<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>
recommendation-more-help
4e9b9d8c-5839-4215-aa35-01b652869681