API Documentation

Assets.GetByFilter

Assets.GetByFilter

Returns a list (array) of all assets in the specified workspaces based on the specified filter.

Parameters and required information

Here's a list of all the parameters you'll need to pass to the Assets.GetByFilter method. All of the parameters are required unless otherwise noted.

SessionKey
The session key obtained from User.Login
WorkspaceIDs
A comma delimited list of workspace IDs
Filter
The filter you want to be used. Currently available (rated,unrated)

Return Codes

Success

Status: success
Returns a list of all assets for the specified workspaces based on the filter.
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.
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>
	<workspaceids>string</workspaceids>
	<filter>string</filter>   
</request>  
<?xml version="1.0" encoding="utf-8"?>
<mediasilo_response method="Assets.GetByFilter" status="success">
	<asset>
		<id>integer</id>
		<name>string</name>
		<thumbnail>string&lt;/thumbnail>
		<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>
	</asset> 
 <mediasilo_response>