gogol-photoslibrary-0.4.0: Google Photos Library SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.PhotosLibrary.MediaItems.Search

Contents

Description

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

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

mediaItemsSearch Source #

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
Eq MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Data MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MediaItemsSearch -> c MediaItemsSearch #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MediaItemsSearch #

toConstr :: MediaItemsSearch -> Constr #

dataTypeOf :: MediaItemsSearch -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MediaItemsSearch) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MediaItemsSearch) #

gmapT :: (forall b. Data b => b -> b) -> MediaItemsSearch -> MediaItemsSearch #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MediaItemsSearch -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MediaItemsSearch -> r #

gmapQ :: (forall d. Data d => d -> u) -> MediaItemsSearch -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MediaItemsSearch -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MediaItemsSearch -> m MediaItemsSearch #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaItemsSearch -> m MediaItemsSearch #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MediaItemsSearch -> m MediaItemsSearch #

Show MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Generic MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Associated Types

type Rep MediaItemsSearch :: Type -> Type #

GoogleRequest MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Associated Types

type Rs MediaItemsSearch :: Type #

type Scopes MediaItemsSearch :: [Symbol] #

type Rep MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

type Rep MediaItemsSearch = D1 (MetaData "MediaItemsSearch" "Network.Google.Resource.PhotosLibrary.MediaItems.Search" "gogol-photoslibrary-0.4.0-GpZ5alnuI5C2GY8YRh8G4V" False) (C1 (MetaCons "MediaItemsSearch'" PrefixI True) (((S1 (MetaSel (Just "_misXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_misUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_misPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool) :*: S1 (MetaSel (Just "_misAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_misUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_misPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SearchMediaItemsRequest)) :*: (S1 (MetaSel (Just "_misBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_misCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

type Scopes MediaItemsSearch = "https://www.googleapis.com/auth/drive.photos.readonly" ': ("https://www.googleapis.com/auth/photoslibrary" ': ("https://www.googleapis.com/auth/photoslibrary.readonly" ': ("https://www.googleapis.com/auth/photoslibrary.readonly.appcreateddata" ': ([] :: [Symbol]))))
type Rs MediaItemsSearch Source # 
Instance details

Defined in Network.Google.Resource.PhotosLibrary.MediaItems.Search

Request Lenses

misUploadProtocol :: Lens' MediaItemsSearch (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

misPp :: Lens' MediaItemsSearch Bool Source #

Pretty-print response.

misUploadType :: Lens' MediaItemsSearch (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").