Bonjour,
je m'interresse particulièrement au tuto de Bbil "Google calendar et VB6", reconnu comme la référence pour travailler sur l'agenda google.
Mais je dois avouer mon incompréhension du principe meme dutiliser un contrôle INET (Microsoft Internet Transfer Control 6.0) pour communiquer avec
les serveurs Google.
Y a t-il des reférence à sélectionner ? ( je ne trouve pas Microsoft Internet Transfer Control , ni MsITC....)
du coup, je n'arrive même pas à jouer le programme fourni dans le tuto, à savoir :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Authentification
'
Function GooAuthentification(stEmail As String, stPassword As String) As Boolean
Dim stURl As String
Dim stSource As String
Dim stFormData As String
Dim stHeaders As String
stSource = App.CompanyName & "-" & App.EXEName & "-" & App.Major & "." & App.Minor
stURl = "https://www.google.com/accounts/ClientLogin"
stFormData = "Email=" & stEmail & "&Passwd=" & stPassword & "&source=" & stSource & "&service=cl"
stHeaders = "Content-Type:application/x-www-form-urlencoded"
Inet1.Execute stURl, "POST", stFormData, stHeaders
'Mise à 0 flag d'attente réponse
bFinAttente = False
Do Until bFinAttente = True
DoEvents
Loop
If InStr(1, stRetHeader, "200 OK") > 0 Then
stAuthCode = Right(stReponse, Len(stReponse) - InStrRev(stReponse, "Auth=") - 4)
GooAuthentification = True
Else
GooAuthentification = False
End If
End Function |
je plante au niveau de
stSource = App.CompanyName & "-" & App.EXEName & "-" & App.Major & "." & App.Minor
.
Peut on m'orienter vers un autre tuto ou m'aider à comprendre ?
Partager