Hi Matt,

The domain given in the CalendarService constructor is used to create
the URL for the ClientLogin service, in this case:

https://www.google.com/accounts/ClientLogin

This is different than the front end login page you visit in your
browser.

The following code should successfully authenticate:
    CalendarService theService = new CalendarService("appsLoginTest");
    theService.setUserCredentials("[EMAIL PROTECTED]",
"thepassword");

If this still isn't working for you, feel free to send me more
information (i.e. the user and domain name) out of band (api dot
lliabraa at gmail.com).

Cheers,
Lane


On Aug 1, 10:22 am, "Matt Andruff" <[EMAIL PROTECTED]> wrote:
> Yeah I tried doing that but then I get that user name and password don't
> work.
>  (which if I login from the partner page they do.) I didn't think you could
> login to a hosted account fromwww.google.com.  (i tried this manually and
> it denied me.)  Is this a permissions thing or is it possible to login to
> your hosted account fromwww.google.com?
>
> On 8/1/07, Lane LiaBraaten (Google) <[EMAIL PROTECTED] > wrote:
>
>
>
>
>
> > Hi Matt,
>
> > Just to be clear, you should actually leave off the last two
> > parameters and send just the application name like this:
>
> > CalendarService myService = new CalendarService("exampleCo-
> > exampleApp-1);
>
> > Cheers,
> > Lane
>
> > On Aug 1, 9:56 am, "Lane LiaBraaten (Google)" < [EMAIL PROTECTED]>
> > wrote:
> > > Hi Matt,
>
> > > The last parameter is used to specify the domain that hosts the
> > > authentication service (i.e. ClientLogin).  You can actually leave
> > > this parameter out and it will default to the correct value, which
> > iswww.google.com.
>
> > > Hope that gets you going again,
> > > Lane
>
> > > On Jul 31, 11:33 pm, Matt Andruff < [EMAIL PROTECTED]> wrote:
>
> > > > I'm simply trying to login to the account but can't seem to
> > > > authenticate with a password and user that is correct.  I've copy and
> > > > pasted to make sure:
>
> > > > I'm simply trying to login:
>
> > > > CalendarService myService = new CalendarService("exampleCo-
> > > > exampleApp-1", "http", " hosteddomain.com" );
> > > > myService.setUserCredentials("[EMAIL PROTECTED] ", "mypassword");
>
> > > > I get an error telling me to check my service name which is silly
> > > > 'cause I know it's set to 'cl' automatically.
>
> > > > I swear up and down I've checked the username and password.
>
> > > > any ideas where I'm going wrong?
>
> --
> The problem with humanity is stupidity. I'm not saying there should be a
> capital punishment for stupidity, but why don't we just take the safety
> labels off of everything and let the problem solve itself?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to