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 all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license.
See: Poly API Reference for poly.assets.list
.
Synopsis
- type AssetsListResource = "v1" :> ("assets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "category" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "keywords" Text :> (QueryParam "pageToken" Text :> (QueryParam "curated" Bool :> (QueryParam "maxComplexity" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAssetsResponse)))))))))))))))
- assetsList :: AssetsList
- data AssetsList
- alXgafv :: Lens' AssetsList (Maybe Xgafv)
- alUploadProtocol :: Lens' AssetsList (Maybe Text)
- alOrderBy :: Lens' AssetsList (Maybe Text)
- alCategory :: Lens' AssetsList (Maybe Text)
- alAccessToken :: Lens' AssetsList (Maybe Text)
- alFormat :: Lens' AssetsList (Maybe Text)
- alUploadType :: Lens' AssetsList (Maybe Text)
- alKeywords :: Lens' AssetsList (Maybe Text)
- alPageToken :: Lens' AssetsList (Maybe Text)
- alCurated :: Lens' AssetsList (Maybe Bool)
- alMaxComplexity :: Lens' AssetsList (Maybe Text)
- alPageSize :: Lens' AssetsList (Maybe Int32)
- alCallback :: Lens' AssetsList (Maybe Text)
REST Resource
type AssetsListResource = "v1" :> ("assets" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "category" Text :> (QueryParam "access_token" Text :> (QueryParam "format" Text :> (QueryParam "uploadType" Text :> (QueryParam "keywords" Text :> (QueryParam "pageToken" Text :> (QueryParam "curated" Bool :> (QueryParam "maxComplexity" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAssetsResponse))))))))))))))) Source #
A resource alias for poly.assets.list
method which the
AssetsList
request conforms to.
Creating a Request
assetsList :: AssetsList Source #
Creates a value of AssetsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AssetsList Source #
Lists all public, remixable assets. These are assets with an access level of PUBLIC and published under the CC-By license.
See: assetsList
smart constructor.
Instances
Request Lenses
alUploadProtocol :: Lens' AssetsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
alOrderBy :: Lens' AssetsList (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.
alCategory :: Lens' AssetsList (Maybe Text) Source #
Filter assets based on the specified category. Supported values are: `animals`, `architecture`, `art`, `food`, `nature`, `objects`, `people`, `scenes`, `technology`, and `transport`.
alAccessToken :: Lens' AssetsList (Maybe Text) Source #
OAuth access token.
alFormat :: Lens' AssetsList (Maybe Text) Source #
Return only assets with the matching format. Acceptable values are: `BLOCKS`, `FBX`, `GLTF`, `GLTF2`, `OBJ`, `TILT`.
alUploadType :: Lens' AssetsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
alKeywords :: Lens' AssetsList (Maybe Text) Source #
One or more search terms to be matched against all text that Poly has indexed for assets, which includes display_name, description, and tags. Multiple keywords should be separated by spaces.
alPageToken :: Lens' AssetsList (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.
alCurated :: Lens' AssetsList (Maybe Bool) Source #
Return only assets that have been curated by the Poly team.
alMaxComplexity :: Lens' AssetsList (Maybe Text) Source #
Returns assets that are of the specified complexity or less. Defaults to COMPLEX. For example, a request for MEDIUM assets also includes SIMPLE assets.
alPageSize :: Lens' AssetsList (Maybe Int32) Source #
The maximum number of assets to be returned. This value must be between `1` and `100`. Defaults to `20`.
alCallback :: Lens' AssetsList (Maybe Text) Source #
JSONP