|
|
|
|
- Retrieving an album
- Possible error cases:
GglFillPhoto (Function) In french: GglRemplitPhoto
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.
Retrieves the details about the photos found in a Google Picasa album: initial image, comments, tags, thumbnails.
// Google connection Cnt is gglConnection ... IF GglConnect(Cnt) = False THEN Error(ErrorInfo()) END
// Retrieve the album named "Summer 2008" with the data about the photos Album is gglAlbum Album  = GglGetAlbum(Cnt, "Summer 2008", gglWithPhotoData)
// Browse the photos and download the initial image of each photo IF ErrorOccurred = False THEN Photo is gglPhoto FOR EACH Photo OF Album..PhotoData GglFillPhoto(Cnt, Photo, gglWithImage) END END
Syntax
<Result> = GglFillPhoto(<Google connection> , <Photo to fill> , <Options>)
<Result>: Boolean - True if the characteristics of the specified photo have been retrieved,
- False otherwise.
<Google connection>: gglConnection variable Name of gglConnection variable to use. This connection was validated by GglConnect. Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication. <Photo to fill>: gglPhoto variable Name of gglPhoto variable to fill. <Options>: Integer constant (or combination of constants) Options for retrieving the photo: | | gglWithComment | The comments of photos are downloaded. Then, the ..Comment property of the gglPhoto variable will be filled. | gglWithImage | The initial photo is downloaded. Then, the ..Image property of the gglPhoto variable will be filled. | gglWithTag | The tags of photo are downloaded. Then, the ..Tag property of the gglPhoto variable will be filled. | gglWithThumbnail | The thumbnails of the photo are downloaded. Then, the ..Media..Thumbnail property of the gglPhoto variable will be filled. |
If no constant is specified, the photo will be retrieved without comment, without initial image, without tag and without thumbnail. Remarks Retrieving an album To retrieve an album, you have the ability to use: To retrieve the images linked to the album, you must browse the photos of the album and use GglFillPhoto. Possible error cases: - The Internet connection is not valid.
- The authentication was not performed properly.
- The XML response of the server cannot be read.
To find out whether an error occurred, use the ErrorOccurred variable. Business / UI classification : Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|