The
gglAuthor type is used to identify the author of a Google element. This information is available in read-only: it is specified by Google during the creation (according to the connection information) and it cannot be modified.
This type of variable is used by:
Remarks:
- In most cases, the declaration of a gglAuthor variable is not required. The properties of the gglCalendar or gglEvent type allow you to directly handle the properties of the gglAuthor type (especially the Author property).
- For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Connection to Google
Cnt is gglConnection
Cnt.Email = "balthazar@gmail.com"
Cnt.Password = "qwerty"
Cnt.ApplicationName = "MyApp-01"
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
END
...
// Retrieve the array of available calendars
arrCalendars is array of gglCalendar
arrCalendars = GglListCalendar(Cnt)
// Retrieve the events of the first calendar
GglFillCalendar(Cnt, arrCalendars[1])
// Case 1: Direct use of the name of the author
Trace("Author of the calendar: "+ arrCalendars[1].Author.Name)
// Case 2: Use by passing a gglAuthor variable
CalendarAuthor is gglAuthor
CalendarAuthor = arrCalendars[1].Author
Trace("Author of the calendar: " + CalendarAuthor.Name)
Remarks
Properties specific to the description of gglAuthor variables
The following properties can be used to handle a gglAuthor variable:
| | |
Property name | Type used | Effect |
---|
Email | Character string | Email of the author. This property corresponds to the email of the user who created the element (name used in the connection information). This property is read-only. |
Name | Character string | Name of the author. This property corresponds to the name of the user who created the element (name used in the connection information). This property is read-only. |