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
  • Properties specific to the description of gglPhoto variables
  • Functions that use gglPhoto variables:
  • Functions that use gglPhoto variables (prefixed syntax):
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.
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.
Example
// 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:
NameType usedEffect
AccessCharacter String constantType 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).
ChecksumCharacter stringSum of Hash of the image. This property is available in read-only.
CommentArray of gglCommentComments associated with the photo.
CommentingEnabledBoolean
  • True to enable the management of comments on the album,
  • False otherwise.
UpdateDateDateTimeDate of the last update of the photo. This property is available in read-only.
HeightIntegerHeight of photo in pixels. This property is available in read-only.
AlbumIdentifierCharacter stringIdentifier of the album to which the photo belongs. This property is available in read-only.
PhotoIdentifierCharacter stringIdentifier of the photo within the album. This property is available in read-only.
ImageImageInitial 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.
WidthIntegerWidth of photo expressed in pixels. This property is available in read-only.
LegendCharacter stringDescription of the photo.
MediagglMediaGroupAdditional data about the photo.
NbCommentIntegerNumber of comments about the photo. This property is available in read-only.
FileNameCharacter stringName of the file corresponding to the photo on the server.
Caution: This property must necessarily be specified.
TagArray of gglTagTags associated with the photo.
EXIFTaggglEXIFTagEXIF tags associated with the photo. This property is available in read-only.
SizeIntegerSize of the photo in bytes. This property is available in read-only.
TimestampIntegerTimestamp 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:

GglDeleteDeletes data from the Google server.
GglFillPhotoRetrieves the details about the photos found in a Google Picasa album: initial image, comments, tags, thumbnails.
GglListPhotoLists the photos found in the Google Picasa albums corresponding to specific criteria.
GglWriteCreates and/or updates data on the Google server (addition or modification of data).

Functions that use gglPhoto variables (prefixed syntax):

<gglConnection variable>.DeleteDeletes data from the Google server.
<gglConnection variable>.FillPhotoRetrieves the details about the photos found in a Google Picasa album: initial image, comments, tags, thumbnails.
<gglConnection variable>.ListPhotoLists the photos found in the Google Picasa albums corresponding to specific criteria.
<gglConnection variable>.WriteCreates and/or updates data on the Google server (addition or modification of data).
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