ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Attention : This is version 25 of this documentation page. This feature may have been changed or removed in a higher version.
Help / WLanguage / WLanguage functions / Communication / Google functions / Google Picasa
  • 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
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 a Google Picasa album.
Example
// Google connection
Cnt is gglConnection
...
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END

// Retrieve the album named "Summer 2008" with its cover image
Album is gglAlbum
Album = GglGetAlbum(Cnt, "Summer 2008", gglWithImage)

// Retrieve the meta-data of the photos found in the album
GglFillAlbum(Cnt, Album, gglWithPhotoData)

// Browse the photos
IF ErrorOccurred = False THEN
Photo is gglPhoto
FOR EACH Photo OF Album..PhotoData
Trace(Photo..Media..MediaContent..URL)
END
END
Syntax
<Result> = GglGetAlbum(<Google connection> , <Album title or identifier> [, <Options>])
<Result>: gglAlbum variable
gglAlbum variable containing the characteristics of the Picasa album.
<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.
<Album title or identifier>: Unicode character string (with quotes)
Title or identifier of the requested Picasa album.
<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 GglFillPhoto.
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:
  • GglListAlbum to retrieve the list of available albums.
  • GglGetAlbum to retrieve a specific album.
  • GglFillAlbum to retrieve the characteristics of an album (an album listed by GglListAlbum for example).
To retrieve the images linked to the album, you must browse the album photos 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
Component : wd250ggl.dll
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 04/29/2020

Send a report | Local help