Media methods allow you display, create, remove and manipulate media content in New Spark Media Platform.
Media.getFiles

Returns a list of media based on provided parameters.

The actual return value is a struct with the totalCount and data properties. totalCount contains the number of items that would have been returned if there was no offset or limit specified.

pageSize has a maximum value of 500 - ie. no more than 500 media items will ever be returned from a single call read more »

Media.logHit

Use this method to log a hit (aka view) on a media item.

read more »
Media.updateFile

Changes the properties of a media item.

read more »