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 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.
See: Poly API Reference for poly.users.likedassets.list
.
Synopsis
- type UsersLikedassetsListResource = "v1" :> (Capture "name" Text :> ("likedassets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListLikedAssetsResponse))))))))))))
- usersLikedassetsList :: Text -> UsersLikedassetsList
- data UsersLikedassetsList
- ullXgafv :: Lens' UsersLikedassetsList (Maybe Xgafv)
- ullUploadProtocol :: Lens' UsersLikedassetsList (Maybe Text)
- ullOrderBy :: Lens' UsersLikedassetsList (Maybe Text)
- ullAccessToken :: Lens' UsersLikedassetsList (Maybe Text)
- ullFormat :: Lens' UsersLikedassetsList (Maybe Text)
- ullUploadType :: Lens' UsersLikedassetsList (Maybe Text)
- ullName :: Lens' UsersLikedassetsList Text
- ullPageToken :: Lens' UsersLikedassetsList (Maybe Text)
- ullPageSize :: Lens' UsersLikedassetsList (Maybe Int32)
- ullCallback :: Lens' UsersLikedassetsList (Maybe Text)
REST Resource
type UsersLikedassetsListResource = "v1" :> (Capture "name" Text :> ("likedassets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListLikedAssetsResponse)))))))))))) Source #
A resource alias for poly.users.likedassets.list
method which the
UsersLikedassetsList
request conforms to.
Creating a Request
Creates a value of UsersLikedassetsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersLikedassetsList Source #
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.
See: usersLikedassetsList
smart constructor.
Instances
Request Lenses
ullUploadProtocol :: Lens' UsersLikedassetsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ullOrderBy :: Lens' UsersLikedassetsList (Maybe Text) Source #
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.
ullAccessToken :: Lens' UsersLikedassetsList (Maybe Text) Source #
OAuth access token.
ullFormat :: Lens' UsersLikedassetsList (Maybe Text) Source #
Return only assets with the matching format. Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
ullUploadType :: Lens' UsersLikedassetsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ullName :: Lens' UsersLikedassetsList 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.
ullPageToken :: Lens' UsersLikedassetsList (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.
ullPageSize :: Lens' UsersLikedassetsList (Maybe Int32) Source #
The maximum number of assets to be returned. This value must be between `1` and `100`. Defaults to `20`.
ullCallback :: Lens' UsersLikedassetsList (Maybe Text) Source #
JSONP