Hi group,

 

I am developing a server application. My server is supposed to make
connection to Google and 

get data from Google server. There is more then 100 users registered to our
server. I got to get

updated data for every user in some time interval(say 3 hours).

 

What authentication option I should use for  making connection to Google for
all the users.

 

What I am doing currently is making a GoogleService object for my
application  as

 

                  service = new CalendarService("MY- SERVER");

 

for every request to Google for different user I am changing credentials as

 

 
service.setUserCredentials(user.getUsername(),user.getPassword());

 

 

and getting the required information from Google server.

But this approach takes some time in executing and that time I want to be
reduced.    

Now I got to know about AuthToken that will save some of my time.

 

I am trying to use this approach like this

                  calendarService = new CalendarService("MY- SERVER");

                  

                  calendarService.setAuthSubToken(aString);// this auth
token I received from previous request.

                  CalendarFeed feed = calendarService.getFeed(url,
CalendarFeed.class);

But this code gives me this exception.

com.google.gdata.util.AuthenticationException: Token invalid - Token cannot
be parsed

 

 

So guys I am clueless how to achieve this can you please provide some pseudo
code that can help me in

Using AuthToken approach.

 

 

Enjoy,

Vijay shanker.


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