1
我運行到那裏試圖通過文件夾的基礎拉一個文件夾上的資產清單的問題:Adobe Scene7 API - 如何在特定文件夾中提取資源?
該文檔顯示,assetHandleArray是必填字段爲「getAssets」和文檔有「的說明根文件夾檢索文件夾和所有子文件夾到葉級別。如果排除,則使用公司根目錄。「
但是,當我們嘗試放置文件夾句柄時,它會引發非法句柄異常。
參考文獻: https://marketing.adobe.com/resources/help/en_US/s7/ips_api/operations/r_get_assets.html
示例請求:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.scene7.com/IpsApi/xsd/2014-04-03">
<soapenv:Header>
<ns:authHeader>
<ns:user>***********</ns:user>
<ns:password>***********</ns:password>
<ns:appName>MYAPP</ns:appName>
<ns:appVersion>1</ns:appVersion>
</ns:authHeader>
</soapenv:Header>
<soapenv:Body>
<ns:getAssetsParam>
<ns:companyHandle>c|12345</ns:companyHandle>
<ns:assetHandleArray>
<!--Zero or more repetitions:-->
<ns:items>f|Path/to/folder/</ns:items>
</ns:assetHandleArray>
</ns:getAssetsParam>
</soapenv:Body>
</soapenv:Envelope>
示例響應:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>ipsApiFault</faultstring>
<detail>
<tns:ipsApiFault xmlns:tns="http://www.scene7.com/IpsApi/xsd">
<tns:code>30000</tns:code>
<tns:reason>Illegal AssetHandle (f|Path/to/folder/)</tns:reason>
</tns:ipsApiFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
那麼,如何去獲得資產?