Class Index

Classes


AssetsByPath

Gets the asset info given their path
Defined in: assetsByPath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
AssetsByPath(paths, verbose, fields)
Given the file paths in "paths", this endpoint returns their asset info.
Class Detail
AssetsByPath(paths, verbose, fields)
Given the file paths in "paths", this endpoint returns their asset info.
Parameters:
paths
an array of files paths.
verbose Optional, Default: false
Setting this to true will collect a variety of default values for each asset.
fields Optional
An array of field id's to collect the values for each asset
Returns:
[{assetInfo}, ... ]
/wf/restapi/v2/AssetsByPath

Parameters:
paths=["asset/data/path1.txt","asset/data/path2.txt"]
verbose=true

Response:
 [
	 {
	   "id": 201629307,
	   "name": "path1.txt",
	   "path": "asset/data/path1.txt",
	   "height": 0,
	   "width": 0,
	   "bytes": 0,
	   "lastModified": 1507845948000,
	   "mimeType": "text/plain",
	   "previews": {
		 "thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363239333037",
		 "viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363239333037",
		 "downloadUrl": "../servlet/dload?id=201629307"
	   }
	 },
	 {
	   "id": 201629308,
	   "name": "path2.txt",
	   "path": "asset/data/path2.txt",
	   "height": 0,
	   "width": 0,
	   "bytes": 0,
	   "lastModified": 1507845948000,
	   "mimeType": "text/plain",
	   "previews": {
		 "thumbnail": "../servlet/jb.view?table=thumbnails&col=thumbnails&id=pe_323031363239333038",
		 "viewex": "../servlet/jb.view?table=viewex&col=viewex&id=pe_323031363239333038",
		 "downloadUrl": "../servlet/dload?id=201629308"
	   }
	 }
 ]

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Aug 06 2018 16:08:51 GMT-0500 (CDT)