TTMSFNCCustomCloudGooglePhotos Class
Base client class that connects to the Google Photos service and exposes album and photo management, including listing and creating albums, searching photos, and uploading and downloading images.
API unit family: TMSFNCCloudGooglePhotos
Inherits from: TTMSFNCCustomCloudGoogle
Syntax
TTMSFNCCustomCloudGooglePhotos = class(TTMSFNCCustomCloudGoogle)
Remarks
Authenticate the client before issuing requests; the required OAuth scope is added automatically.
Properties
| Name | Description |
|---|---|
| Albums | The albums retrieved for the account by GetAlbums or created with CreateAlbum. |
| SearchResults | The photos returned by the most recent SearchPhotos call. |
Methods
| Name | Description |
|---|---|
| AddFolderToAlbum | Uploads every file in a folder to an album, creating the album when it does not already exist. |
| CreateAlbum | Creates a new album on the service using the title of the given album item. |
| DownloadPhoto | Downloads the full-size image of a photo and saves it to a local file. |
| FindAlbumByTitle | Searches the loaded Albums collection for an album with the given title. |
| GetAlbums | Requests the list of albums for the authenticated account. |
| SearchPhotos | Searches for photos, optionally restricted to a single album identified by its identifier. |
| UploadPhoto | Uploads a local image file and adds it to the specified album. |