Lists assets authored by the given user. Only the value 'me', representing the currently-authenticated user, is supported. May include assets with an access level of PRIVATE
or UNLISTED
and assets which are All Rights Reserved
for the currently-authenticated user.
HTTP request
GET https://poly.googleapis.com/v1/{name=users/*}/assets
The URL uses Google API HTTP annotation syntax.
Path parameters
Parameters | |
---|---|
name |
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 | |
---|---|
format |
Return only assets with the matching format. Acceptable values are: |
visibility |
The visibility of the assets to be returned. Defaults to |
pageSize |
The maximum number of assets to be returned. This value must be between |
orderBy |
Specifies an ordering for assets. Acceptable values are: |
pageToken |
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 |
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 | |
---|---|
{
"userAssets": [
{
object( |
Fields | |
---|---|
userAssets[] |
A list of UserAssets matching the request. |
nextPageToken |
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 |
totalSize |
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.
VisibilityRestriction
Possible values for the visibility
filter.
Enums | |
---|---|
VISIBILITY_UNSPECIFIED |
No visibility specified. Returns all assets. |
PUBLISHED |
Returns only published assets. |
PRIVATE |
Returns only private assets. |
UserAsset
Data about the user's asset.
JSON representation | |
---|---|
{
"asset": {
object( |
Fields | |
---|---|
asset |
An Asset. |