class Assets extends Resource (View source)

The "assets" collection of methods.

Typical usage is:

 $polyService = new Google\Service\PolyService(...);
 $assets = $polyService->assets;

Methods

get(string $name, array $optParams = [])

Returns detailed information about an asset given its name. PRIVATE assets are returned only if the currently authenticated user (via OAuth token) is the author of the asset. (assets.get)

listAssets(array $optParams = [])

Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license. (assets.listAssets)

Details

Asset get(string $name, array $optParams = [])

Returns detailed information about an asset given its name. PRIVATE assets are returned only if the currently authenticated user (via OAuth token) is the author of the asset. (assets.get)

Parameters

string $name

Required. An asset's name in the form assets/{ASSET_ID}.

array $optParams

Optional parameters.

Return Value

Asset

ListAssetsResponse listAssets(array $optParams = [])

Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license. (assets.listAssets)

Parameters

array $optParams

Optional parameters.

Return Value

ListAssetsResponse