Method: users.likedassets.list

Lists assets that the user has liked. Only the value 'me', representing the currently-authenticated user, is supported. May include assets with an access level of UNLISTED.

HTTP request

GET https://poly.googleapis.com/v1/{name=users/*}/likedassets

The URL uses Google API HTTP annotation syntax.

Path parameters

Parameters
name

string

A valid user id. Currently, only the special value 'me', representing the currently-authenticated user is supported. To use 'me', you must pass an OAuth token with the request.

Query parameters

Parameters
pageSize

number

The maximum number of assets to be returned. This value must be between 1 and 100. Defaults to 20.

orderBy

string

Specifies an ordering for assets. Acceptable values are: BEST, NEWEST, OLDEST, 'LIKED_TIME'. Defaults to LIKED_TIME, which ranks assets based on how recently they were liked.

pageToken

string

Specifies a continuation token from a previous search whose results were split into multiple pages. To get the next page, submit the same request specifying the value from nextPageToken.

format

string

Return only assets with the matching format. Acceptable values are: BLOCKS, FBX, GLTF, GLTF2, OBJ, TILT.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

A response message from a request to list.

JSON representation
{
  "assets": [
    {
      object(Asset)
    }
  ],
  "nextPageToken": string,
  "totalSize": number
}
Fields
assets[]

object(Asset)

A list of assets that match the criteria specified in the request.

nextPageToken

string

The continuation token for retrieving the next page. If empty, indicates that there are no more pages. To get the next page, submit the same request specifying this value as the pageToken.

totalSize

number

The total number of assets in the list, without pagination.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/vrassetdata.readonly

For more information, see the OAuth 2.0 Overview.