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 |
Creates one or more media items in a user's Google Photos library. If an album id is specified, the media item(s) are also added to the album. By default the media item(s) will be added to the end of the library or album. If an album id and position are both defined, then the media items will be added to the album at the specified position. If multiple media items are given, they will be inserted at the specified position.
See: Photos Library API Reference for photoslibrary.mediaItems.batchCreate
.
Synopsis
- type MediaItemsBatchCreateResource = "v1" :> ("mediaItems:batchCreate" :> (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] BatchCreateMediaItemsRequest :> Post '[JSON] BatchCreateMediaItemsResponse))))))))))
- mediaItemsBatchCreate :: BatchCreateMediaItemsRequest -> MediaItemsBatchCreate
- data MediaItemsBatchCreate
- mibcXgafv :: Lens' MediaItemsBatchCreate (Maybe Xgafv)
- mibcUploadProtocol :: Lens' MediaItemsBatchCreate (Maybe Text)
- mibcPp :: Lens' MediaItemsBatchCreate Bool
- mibcAccessToken :: Lens' MediaItemsBatchCreate (Maybe Text)
- mibcUploadType :: Lens' MediaItemsBatchCreate (Maybe Text)
- mibcPayload :: Lens' MediaItemsBatchCreate BatchCreateMediaItemsRequest
- mibcBearerToken :: Lens' MediaItemsBatchCreate (Maybe Text)
- mibcCallback :: Lens' MediaItemsBatchCreate (Maybe Text)
REST Resource
type MediaItemsBatchCreateResource = "v1" :> ("mediaItems:batchCreate" :> (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] BatchCreateMediaItemsRequest :> Post '[JSON] BatchCreateMediaItemsResponse)))))))))) Source #
A resource alias for photoslibrary.mediaItems.batchCreate
method which the
MediaItemsBatchCreate
request conforms to.
Creating a Request
mediaItemsBatchCreate Source #
Creates a value of MediaItemsBatchCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data MediaItemsBatchCreate Source #
Creates one or more media items in a user's Google Photos library. If an album id is specified, the media item(s) are also added to the album. By default the media item(s) will be added to the end of the library or album. If an album id and position are both defined, then the media items will be added to the album at the specified position. If multiple media items are given, they will be inserted at the specified position.
See: mediaItemsBatchCreate
smart constructor.
Instances
Request Lenses
mibcUploadProtocol :: Lens' MediaItemsBatchCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mibcAccessToken :: Lens' MediaItemsBatchCreate (Maybe Text) Source #
OAuth access token.
mibcUploadType :: Lens' MediaItemsBatchCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mibcPayload :: Lens' MediaItemsBatchCreate BatchCreateMediaItemsRequest Source #
Multipart request metadata.
mibcBearerToken :: Lens' MediaItemsBatchCreate (Maybe Text) Source #
OAuth bearer token.
mibcCallback :: Lens' MediaItemsBatchCreate (Maybe Text) Source #
JSONP