I need to get the list of spreadsheet with data available in Google drive by using c# language.
I was using the following code,
SpreadsheetsService
service = new SpreadsheetsService("GDriveSpreadSheet"); ;
service.setUserCredentials(
"UserName", "password");
SpreadsheetQuery Q = new SpreadsheetQuery();
SpreadsheetFeed F = service.Query(Q);
SpreadsheetEntry spreadsheet = (SpreadsheetEntry)F.Entries[0];
WorksheetFeed wsFeed = spreadsheet.Worksheets;
But I'm getting invalid Credential exception in the above marked line...
Can any one help me!!!
Thanks
Ramesh MaruthiPosted Oct 13, 2014, 11:08 AM
You code looks perfect, it should work can you double check whether your giving the right Credentials or not ?
Marutharasu PPosted Feb 3, 2015, 12:50 AM
"GDriveSpreadSheet" - This is Project Name, and also I am having Full control access in this project. I don't know why I am getting error?
Can We have any network domain level configuration settings?
Ramesh MaruthiPosted Oct 31, 2014, 9:50 AM
Thanks for accepting the answer, please look at the below link. I compared your code it was pretty good. The only thing. I can suggest you is does GDriveSpreadSheet has the permissions to open it like read/write permissions ?
Marutharasu PPosted Oct 31, 2014, 6:43 AM
I have checked lot of times... But still I m getting invalid credential exception only...
Is there any other way to get the list of spread sheet from Google drive?