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 |
Lists all albums shown to a user in the 'Albums' tab of the Google Photos app.
See: Photos Library API Reference for photoslibrary.albums.list
.
Synopsis
- type AlbumsListResource = "v1" :> ("albums" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAlbumsResponse)))))))))))
- albumsList :: AlbumsList
- data AlbumsList
- alXgafv :: Lens' AlbumsList (Maybe Xgafv)
- alUploadProtocol :: Lens' AlbumsList (Maybe Text)
- alPp :: Lens' AlbumsList Bool
- alAccessToken :: Lens' AlbumsList (Maybe Text)
- alUploadType :: Lens' AlbumsList (Maybe Text)
- alBearerToken :: Lens' AlbumsList (Maybe Text)
- alPageToken :: Lens' AlbumsList (Maybe Text)
- alPageSize :: Lens' AlbumsList (Maybe Int32)
- alCallback :: Lens' AlbumsList (Maybe Text)
REST Resource
type AlbumsListResource = "v1" :> ("albums" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAlbumsResponse))))))))))) Source #
A resource alias for photoslibrary.albums.list
method which the
AlbumsList
request conforms to.
Creating a Request
albumsList :: AlbumsList Source #
Creates a value of AlbumsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AlbumsList Source #
Lists all albums shown to a user in the 'Albums' tab of the Google Photos app.
See: albumsList
smart constructor.
Instances
Request Lenses
alUploadProtocol :: Lens' AlbumsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
alAccessToken :: Lens' AlbumsList (Maybe Text) Source #
OAuth access token.
alUploadType :: Lens' AlbumsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
alBearerToken :: Lens' AlbumsList (Maybe Text) Source #
OAuth bearer token.
alPageToken :: Lens' AlbumsList (Maybe Text) Source #
A continuation token to get the next page of the results. Adding this to the request will return the rows after the pageToken. The pageToken should be the value returned in the nextPageToken parameter in the response to the listAlbums request.
alPageSize :: Lens' AlbumsList (Maybe Int32) Source #
Maximum number of albums to return in the response. The default number of albums to return at a time is 20. The maximum page size is 50.
alCallback :: Lens' AlbumsList (Maybe Text) Source #
JSONP