Fixed. I used something else then SetPostContent.
On 14 mei, 17:44, "[email protected]" <[email protected]> wrote:
> I am writing a client program to update the google calendar.
>
> To do this I need to authenticate myself with the google API using the
> ClientLogin.
>
> I'm doing this:
> [code]
> (its REALBasic, similar to VB)
>
> strPostContent = "accountType=HOSTED_OR_GOOGLE" + _
> "&Email=" + strUsername + _
> "&Passwd=" + strPasswd + _
> "&service=cl" + _
> "&source=company-software-" + VERSION
>
> htsPost = New HTTPSecureSocket
> strAuthUrl = "https://www.google.com/accounts/ClientLogin"
>
> htsPost.SetPostContent(strPostContent ,"application/x -www-form-
> urlencoded")
>
> strResponse = htsPost.Post(strAuthUrl, 100)
> [/code]
>
> strResponse gets "Error:BadAuthentication"
>
> My username and password are the ones I use to login to gmail. I
> checked and doublechecked those so that can't be the problem.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---