assetQuery method

AssetQuery assetQuery()

This call fetches the list of all the assets of a particular stack. It also returns the content of each asset in JSON format. You can also specify the environment of which you wish to get the assets. API Reference : https://www.contentstack.com/docs/developers/apis/content-delivery-api/#all-assets

Example:

var stack = contentstack.Stack(apiKey, deliveryToken, environment);
var asset = stack.assetQuery();

Implementation

AssetQuery assetQuery() {
  return AssetQuery(_client);
}