PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Create a contact group in Gmail
  • Create a contact in Gmail
GglWrite (Example)
Create a contact group in Gmail
This code example is used to create a group of contacts in gMail.
Cnt is gglConnection
Cnt..Email = "<My Address>@gmail.com"
Cnt..Password = "<My Password>"
Cnt..ApplicationName = ""
grpGoogle is gglContactGroup
 
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Add the group
grpGoogle..Name = "My New Group"
IF NOT GglWrite(Cnt, grpGoogle) THEN
Error(ErrorInfo())
END
END
Cnt is gglConnection
Cnt..Email = "email_final_user@gmail.com"
Cnt..ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnt..ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
 
grpGoogle is gglContactGroup
 
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Add the group
grpGoogle..Name = "My New Group"
IF NOT GglWrite(Cnt, grpGoogle) THEN
Error(ErrorInfo())
END
END
Create a contact in Gmail
This code example creates a contact in Gmail.
Cnt is gglConnection
Cnt..Email = "<My Address>@gmail.com"
Cnt..Password = "<My Password>"
Cnt..ApplicationName = ""
ctcGoogle is gglContact
 
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Add the contact
ctcGoogle..Name = "My new contact"
ctcGoogle..Notes = "Conact creation test"
IF NOT GglWrite(Cnt, ctcGoogle) THEN
Error(ErrorInfo())
END
END
Cnt is gglConnection
Cnt..Email = "email_final_user@gmail.com"
Cnt..ClientID = "387756281032-qffa6dajjd5348iqhi558dkd98xxxxxx.apps.googleusercontent.com"
Cnt..ClientSecret = "S13DCA6KkYh1EgPv9-jLxxxh"
 
ctcGoogle is gglContact
 
IF GglConnect(Cnt) = False THEN
Error(ErrorInfo())
ELSE
// Add the contact
ctcGoogle..Name = "My new contact"
ctcGoogle..Notes = "Conact creation test"
IF NOT GglWrite(Cnt, ctcGoogle) THEN
Error(ErrorInfo())
END
END
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment