Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: Poly API Reference for poly.users.assets.list
.
Synopsis
- type UsersAssetsListResource = "v1" :> (Capture "name" Text :> ("assets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "visibility" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListUserAssetsResponse)))))))))))))
- usersAssetsList :: Text -> UsersAssetsList
- data UsersAssetsList
- ualXgafv :: Lens' UsersAssetsList (Maybe Xgafv)
- ualUploadProtocol :: Lens' UsersAssetsList (Maybe Text)
- ualOrderBy :: Lens' UsersAssetsList (Maybe Text)
- ualAccessToken :: Lens' UsersAssetsList (Maybe Text)
- ualFormat :: Lens' UsersAssetsList (Maybe Text)
- ualUploadType :: Lens' UsersAssetsList (Maybe Text)
- ualVisibility :: Lens' UsersAssetsList (Maybe Text)
- ualName :: Lens' UsersAssetsList Text
- ualPageToken :: Lens' UsersAssetsList (Maybe Text)
- ualPageSize :: Lens' UsersAssetsList (Maybe Int32)
- ualCallback :: Lens' UsersAssetsList (Maybe Text)
REST Resource
type UsersAssetsListResource = "v1" :> (Capture "name" Text :> ("assets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "visibility" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListUserAssetsResponse))))))))))))) Source #
A resource alias for poly.users.assets.list
method which the
UsersAssetsList
request conforms to.
Creating a Request
Creates a value of UsersAssetsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersAssetsList Source #
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.
See: usersAssetsList
smart constructor.
Instances
Request Lenses
ualUploadProtocol :: Lens' UsersAssetsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ualOrderBy :: Lens' UsersAssetsList (Maybe Text) Source #
Specifies an ordering for assets. Acceptable values are: `BEST`, `NEWEST`, `OLDEST`. Defaults to `BEST`, which ranks assets based on a combination of popularity and other features.
ualAccessToken :: Lens' UsersAssetsList (Maybe Text) Source #
OAuth access token.
ualFormat :: Lens' UsersAssetsList (Maybe Text) Source #
Return only assets with the matching format. Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, and `TILT`.
ualUploadType :: Lens' UsersAssetsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ualVisibility :: Lens' UsersAssetsList (Maybe Text) Source #
The visibility of the assets to be returned. Defaults to VISIBILITY_UNSPECIFIED which returns all assets.
ualName :: Lens' UsersAssetsList Text Source #
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.
ualPageToken :: Lens' UsersAssetsList (Maybe Text) Source #
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 next_page_token.
ualPageSize :: Lens' UsersAssetsList (Maybe Int32) Source #
The maximum number of assets to be returned. This value must be between `1` and `100`. Defaults to `20`.
ualCallback :: Lens' UsersAssetsList (Maybe Text) Source #
JSONP