Workspace.GetAssetsWithMeta
Returns a list (array) of all assets with metadata for the specified workspace.
Parameters and required information
Here's a list of all the parameters you'll need to pass to the Workspace.GetAssets method. All of the parameters are required unless otherwise noted.
SessionKey- The session key obtained from User.Login
WorkspaceID- The id of a workspace obtained from Workspace.GetAll
Tags- A comma seperated list of tags to filter by (OR), this parameter is not required
Return Codes
Success
Status: success- Returns a list of all assets for the current workspace.
Status: fail- The call was not successful. Either the session has expired or the XML was not formatted correctly.
Error
-
5002: Authentication Failure
- No active session exists with this session key and developer account id. The user session has expired and the user has to to log on again.
-
101: The WORKSPACEID attribute is required in the WORSKPACE.GETASSETSWITHMETA function
- The WORKSPACEID was not passed along.
-
505: This user is not authorized to access this workspace
- This user is not authorized to access this workspace
-
506: This user is not authorized to view assets
- This user is not authorized to view assets
HTTP POST
<?xml version="1.0" encoding="utf-8"?> <request> <sessionkey>string</sessionkey> <workspaceid>string</workspaceid> <tags>string</tags> </request>
<?xml version="1.0" encoding="utf-8"?> <mediasilo_response method="Workspace.GetAssetsWithMeta" status="success"> <asset> <id>integer</id> <name>string</name> <thumbnail>string</thumbnail> <thumbnail_small>string</thumbnail_small> <source>string</source> <proxysource>string</proxysource> <sourcewidth>integer</sourcewidth> <sourceheight>integer</sourceheight> <size>integer</size> <datecreated>yyyy-mm-dd hh:mm:ss</datecreated> <description>string</description> <uuid>string</uuid> <duration>integer</duration> <workspaceid>integer</workspaceid> <tags>string</tags> <metadata> <item> <key>string</key> <value>string</value> </item> </metadata> </asset> </mediasilo_response>
