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 an album in a user's Google Photos library.
See: Photos Library API Reference for photoslibrary.albums.create
.
Synopsis
- type AlbumsCreateResource = "v1" :> ("albums" :> (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] CreateAlbumRequest :> Post '[JSON] Album))))))))))
- albumsCreate :: CreateAlbumRequest -> AlbumsCreate
- data AlbumsCreate
- acXgafv :: Lens' AlbumsCreate (Maybe Xgafv)
- acUploadProtocol :: Lens' AlbumsCreate (Maybe Text)
- acPp :: Lens' AlbumsCreate Bool
- acAccessToken :: Lens' AlbumsCreate (Maybe Text)
- acUploadType :: Lens' AlbumsCreate (Maybe Text)
- acPayload :: Lens' AlbumsCreate CreateAlbumRequest
- acBearerToken :: Lens' AlbumsCreate (Maybe Text)
- acCallback :: Lens' AlbumsCreate (Maybe Text)
REST Resource
type AlbumsCreateResource = "v1" :> ("albums" :> (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] CreateAlbumRequest :> Post '[JSON] Album)))))))))) Source #
A resource alias for photoslibrary.albums.create
method which the
AlbumsCreate
request conforms to.
Creating a Request
Creates a value of AlbumsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AlbumsCreate Source #
Creates an album in a user's Google Photos library.
See: albumsCreate
smart constructor.
Instances
Request Lenses
acUploadProtocol :: Lens' AlbumsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
acAccessToken :: Lens' AlbumsCreate (Maybe Text) Source #
OAuth access token.
acUploadType :: Lens' AlbumsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
acPayload :: Lens' AlbumsCreate CreateAlbumRequest Source #
Multipart request metadata.
acBearerToken :: Lens' AlbumsCreate (Maybe Text) Source #
OAuth bearer token.
acCallback :: Lens' AlbumsCreate (Maybe Text) Source #
JSONP