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 |
Searches for media items in a user's Google Photos library. If no filters are set, then all media items in the user's library will be returned. If an album is set, all media items in the specified album will be returned. If filters are specified, anything that matches the filters from the user's library will be listed. If an album and filters are set, then this will result in an error.
See: Photos Library API Reference for photoslibrary.mediaItems.search
.
Synopsis
- type MediaItemsSearchResource = "v1" :> ("mediaItems:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchMediaItemsRequest :> Post '[JSON] SearchMediaItemsResponse))))))))))
- mediaItemsSearch :: SearchMediaItemsRequest -> MediaItemsSearch
- data MediaItemsSearch
- misXgafv :: Lens' MediaItemsSearch (Maybe Xgafv)
- misUploadProtocol :: Lens' MediaItemsSearch (Maybe Text)
- misPp :: Lens' MediaItemsSearch Bool
- misAccessToken :: Lens' MediaItemsSearch (Maybe Text)
- misUploadType :: Lens' MediaItemsSearch (Maybe Text)
- misPayload :: Lens' MediaItemsSearch SearchMediaItemsRequest
- misBearerToken :: Lens' MediaItemsSearch (Maybe Text)
- misCallback :: Lens' MediaItemsSearch (Maybe Text)
REST Resource
type MediaItemsSearchResource = "v1" :> ("mediaItems:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchMediaItemsRequest :> Post '[JSON] SearchMediaItemsResponse)))))))))) Source #
A resource alias for photoslibrary.mediaItems.search
method which the
MediaItemsSearch
request conforms to.
Creating a Request
Creates a value of MediaItemsSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MediaItemsSearch Source #
Searches for media items in a user's Google Photos library. If no filters are set, then all media items in the user's library will be returned. If an album is set, all media items in the specified album will be returned. If filters are specified, anything that matches the filters from the user's library will be listed. If an album and filters are set, then this will result in an error.
See: mediaItemsSearch
smart constructor.
Instances
Request Lenses
misUploadProtocol :: Lens' MediaItemsSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
misAccessToken :: Lens' MediaItemsSearch (Maybe Text) Source #
OAuth access token.
misUploadType :: Lens' MediaItemsSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
misPayload :: Lens' MediaItemsSearch SearchMediaItemsRequest Source #
Multipart request metadata.
misBearerToken :: Lens' MediaItemsSearch (Maybe Text) Source #
OAuth bearer token.
misCallback :: Lens' MediaItemsSearch (Maybe Text) Source #
JSONP