PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Retrieving an album
  • Possible error cases:
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
<gglConnection variable>.ListAlbum (Function)
In french: <Variable gglConnexion>.ListeAlbum
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 list of "Google Picasa" albums available to the user.
Example
// Connection to Google
Cnt is gglConnection
...
IF Cnt.Connect() =False THEN
Error(ErrorInfo())
END
 
// Retrieve the albums with the cover images
arrAlbums is array of gglAlbum = Cnt.ListAlbum(gglWithImage)
Syntax
<Result> = <Google connection>.ListAlbum([<Options>])
<Result>: Array of gglAlbum variable
Array of gglAlbum variable. Each element found in this array contains the characteristics of an album. The number of elements in this array corresponds to the number of available albums.
<Google connection>: gglConnection variable
Name of gglConnection variable to use. This connection was validated by <gglConnection variable>.Connect.
Versions 20 and later
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
New in version 20
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
Caution: the properties of the gglConnection variable must be revised for the OAuth 2.0 authentication.
<Options>: Optional Integer constant (or combination of constants)
Options for retrieving the album:
gglWithPhotoDataThe characteristics of the photos found in the albums are downloaded. Then, the ..PhotoData property of the gglAlbum variable will be filled. The image of the photo can be retrieved by <gglConnection variable>.FillPhoto.
gglWithImageThe photos of the cover images of the albums are downloaded. Then, the ..Image property of the gglAlbum variable will be filled.
gglWithTagThe tags of albums are downloaded. Then, the ..Tag property of the gglAlbum variable will be filled.
gglWithThumbnailThe thumbnails of the cover images are downloaded. Then, the ..Media..Thumbnail property of the gglAlbum variable will be filled.

If no constant is specified, the album will be retrieved without photo, without cover 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 through the album photos and use <gglConnection variable>.FillPhoto.

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.
Component : wd250ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment