|
|
|
|
- Properties specific to the description of gglPhoto variables
- Functions that use gglPhoto variables:
- Functions that use gglPhoto variables (prefixed syntax):
gglPhoto (Type of variable) In french: gglPhoto (Type de variable)
Warning
From January 2019, the functions for managing Google Picasa photo albums will no longer be available. Indeed, the corresponding Google API is no longer available from January 2019. It is necessary to use "Google Photo API".. This new API is accessible via AuthIdentify and HTTP requests. See https://developers.google.com/photos/library/guides/overview for more details.
The gglPhoto type is used to create and modify a photo in a Google Picasa album. The characteristics of this type of variable can be defined and modified by several WLanguage properties. This type of variable is used by the gglAlbum variables. Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
// Connection to Google Cnt is gglConnection Cnt..Email = "vince@gmail.com" Cnt..Password = "azerty" Cnt..ApplicationName = "MyApp-01" IF GglConnect(Cnt) = False THEN Error(ErrorInfo()) END
// Retrieve the array of available albums arrAlbum is array of gglAlbum = GglListAlbum(Cnt)
// Retrieve all the photos found in the first album (the metadata only) GglFillAlbum(Cnt, arrAlbum[1], gglWithPhotoData)
// Browse the photos MyPhotos is gglPhoto FOR EACH MyPhotos OF arrAlbum[1]..PhotoData Trace(MyPhotos..Description) END
// Add a photo to an album // Retrieve the album MyAlbum is gglAlbum = GglGetAlbum(Cnt, "my favorite album") // Create a photo MyPhoto is gglPhoto MyPhoto..Image = "c:\Images\my_photo.jpg" MyPhoto..Legend = "My very own photo"
// Add the image to the album Add(MyAlbum..PhotoData, MyPhoto)
// Send the photo and update the album GglWrite(Cnt, MyAlbum)
Remarks Properties specific to the description of gglPhoto variables The following properties can be used to handle a photo found in a Google Picasa photo: | | | Name | Type used | Effect |
---|
Access | Character String constant | Type of access to the photo. The possible values are:- gglPrivate: The photo can be seen by the authorized persons only.
- gglPublic: The photo can be seen by any Web user who knows its URL and during the public searches (by the Google Image Search service for example).
| Checksum | Character string | Sum of Hash of the image. This property is available in read-only. | Comment | Array of gglComment | Comments associated with the photo. | CommentingEnabled | Boolean | - True to enable the management of comments on the album,
- False otherwise.
| UpdateDate | DateTime | Date of the last update of the photo. This property is available in read-only. | Height | Integer | Height of photo in pixels. This property is available in read-only. | AlbumIdentifier | Character string | Identifier of the album to which the photo belongs. This property is available in read-only. | PhotoIdentifier | Character string | Identifier of the photo within the album. This property is available in read-only. | Image | Image | Initial image. This property corresponds to an empty string by default.
To retrieve a photo, you must use GglFillPhoto to retrieve the binary data of the photo. Then, this photo can be saved (fSaveText) or displayed in an Image control.
To update a photo, this property can correspond to:- the path to an image accessible from the current computer.
- an Image control containing an image.
- a drawing performed in an Image control with the drawing functions and saved in memory.
| Width | Integer | Width of photo expressed in pixels. This property is available in read-only. | Legend | Character string | Description of the photo. | Media | gglMediaGroup | Additional data about the photo. | NbComment | Integer | Number of comments about the photo. This property is available in read-only. | FileName | Character string | Name of the file corresponding to the photo on the server. Caution: This property must necessarily be specified. | Tag | Array of gglTag | Tags associated with the photo. | EXIFTag | gglEXIFTag | EXIF tags associated with the photo. This property is available in read-only. | Size | Integer | Size of the photo in bytes. This property is available in read-only. | Timestamp | Integer | Timestamp of the photo (number of milliseconds from January 1st 1970). | Remark: These properties can be used with one of the following syntaxes: - <Variable name>..<Property name>
- <Variable name>.<Property name>
Functions that use gglPhoto variables: | | GglDelete | Deletes data from the Google server. | GglFillPhoto | Retrieves the details about the photos found in a Google Picasa album: initial image, comments, tags, thumbnails. | GglListPhoto | Lists the photos found in the Google Picasa albums corresponding to specific criteria. | GglWrite | Creates and/or updates data on the Google server (addition or modification of data). |
Functions that use gglPhoto variables (prefixed syntax):
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|