Assets

View as Markdown

Assets

Assets refer to all the media files (images, videos, PDFs, audio files, and so on) uploaded in your Contentstack repository for future use.

NameTypeDescription
assetUid string

Uid for asset to be fetch

Query

Query object to create the "Query" on Assets

use Contentstack\Contentstack;


$stack = Contentstack::Stack('api_key', 'delivery_token', 'environment');

$result = $stack->Assets()->Query()->find;

fetch

Fetch the specified assets

use Contentstack\Contentstack;


$stack = Contentstack::Stack('api_key', 'delivery_token', 'environment');

$result = $stack->Assets('asset_uid')->fetch();