PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of gglMediaContent variables
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 gglMediaContent type is used to find out the data of the original image of a photo in a Picasa album.
The gglMediaContent type is used by the gglMediaGroup variables.
Note: 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
arrAlbum = GglListAlbum(Cnt)

// Retrieve the photos found in the first album (the metadata only)
GglFillAlbum(Cnt, arrAlbum[1], gglWithImage)

// Display the URL of the files for each photo
MyPhoto is gglPhoto
FOR EACH MyPhoto OF arrAlbum[1]..Photo
 Trace(MyPhoto..Media..MediaContent..URL)
END
Remarks

Properties specific to the description of gglMediaContent variables

The following properties can be used to handle the data about the initial image of a photo found in a Google Picasa album:
NameType used Effect
HeightIntegerHeight of photo in pixels.
This property is available in read-only.
WidthIntegerWidth of photo expressed in pixels.
This property is available in read-only.
MIMETypeCharacter stringMIME type of photo.
This property is available in read-only.
URLCharacter stringURL used to download the photo.
This property is available in read-only.

Note: These properties can be used with one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment