Last post Jul 20, 2010 07:39 AM by AlexanderB
Member
12 Points
111 Posts
Jul 20, 2010 06:57 AM|ashvinero|LINK
Comrades,
I have developed a web application using Google Docs API.When i try to open the Document which has been uploaded in Google Docs.I need to be authenticated every time i open it.I have the url of the Document to be opened.
DocumentsListQuery queryone = new DocumentsListQuery(); queryone.Title = "TeamLeaderJobDescription"; queryone.TitleExact = false; DocumentsFeed feedone = service.Query(queryone); foreach (DocumentEntry entrytwo in feedone.Entries) { string ashvinero = entrytwo.AlternateUri.ToString(); DocumentsService client = new DocumentsService(entrytwo.AlternateUri.ToString()); client.setUserCredentials("myaccount@gmail.com", "mypassword"); Process.Start(entrytwo.AlternateUri.ToString()); }
Ashvin
481 Points
161 Posts
Jul 20, 2010 07:39 AM|AlexanderB|LINK
Should you create only one instance of DocumentsService (out the loop).. and put usernaem and password only once ?
it everyhting depends on how Google API handles it and how your classes are implemented
Member
12 Points
111 Posts
Opening Google Docs API with username/password
Jul 20, 2010 06:57 AM|ashvinero|LINK
Comrades,
I have developed a web application using Google Docs API.When i try to open the Document which has been uploaded in Google Docs.I need to be authenticated every time i open it.I have the url of the Document to be opened.
Member
481 Points
161 Posts
Re: Opening Google Docs API with username/password
Jul 20, 2010 07:39 AM|AlexanderB|LINK
Should you create only one instance of DocumentsService (out the loop).. and put usernaem and password only once ?
it everyhting depends on how Google API handles it and how your classes are implemented
Just because it is interesting