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 |
Returns the media item specified based on a given media item id.
See: Photos Library API Reference for photoslibrary.mediaItems.get
.
Synopsis
- type MediaItemsGetResource = "v1" :> ("mediaItems" :> (Capture "mediaItemId" Text :> (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 :> Get '[JSON] MediaItem))))))))))
- mediaItemsGet :: Text -> MediaItemsGet
- data MediaItemsGet
- migXgafv :: Lens' MediaItemsGet (Maybe Xgafv)
- migUploadProtocol :: Lens' MediaItemsGet (Maybe Text)
- migPp :: Lens' MediaItemsGet Bool
- migAccessToken :: Lens' MediaItemsGet (Maybe Text)
- migUploadType :: Lens' MediaItemsGet (Maybe Text)
- migMediaItemId :: Lens' MediaItemsGet Text
- migBearerToken :: Lens' MediaItemsGet (Maybe Text)
- migCallback :: Lens' MediaItemsGet (Maybe Text)
REST Resource
type MediaItemsGetResource = "v1" :> ("mediaItems" :> (Capture "mediaItemId" Text :> (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 :> Get '[JSON] MediaItem)))))))))) Source #
A resource alias for photoslibrary.mediaItems.get
method which the
MediaItemsGet
request conforms to.
Creating a Request
Creates a value of MediaItemsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MediaItemsGet Source #
Returns the media item specified based on a given media item id.
See: mediaItemsGet
smart constructor.
Instances
Request Lenses
migUploadProtocol :: Lens' MediaItemsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
migAccessToken :: Lens' MediaItemsGet (Maybe Text) Source #
OAuth access token.
migUploadType :: Lens' MediaItemsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
migMediaItemId :: Lens' MediaItemsGet Text Source #
Identifier of media item to be requested.
migBearerToken :: Lens' MediaItemsGet (Maybe Text) Source #
OAuth bearer token.
migCallback :: Lens' MediaItemsGet (Maybe Text) Source #
JSONP