I have a Google spreadsheet that I want to use read through a Google Python client. This spreadsheet is private. Here is the code:
import gdata
import gdata.docs
import gdata.spreadsheet
import gdata.spreadsheet.service
client = gdata.spreadsheet.service.SpreadsheetsService()
client.email = '[email protected]'
client.password = 'yyyyy'
client.ProgrammaticLogin()
spreadsheet_feed = client.GetFeed('http://spreadsheets.google.com/feeds/spreadsheets/private/full')
first_entry = spreadsheet_feed.entry[0]
key = first_entry.id.text.rsplit('/')[-1]
worksheets_feed = client.GetWorksheetsFeed(key)
for entry in worksheets_feed.entry:
print entry.title.text
This gives me the following error:
client.ProgrammaticLogin()
File "C:\python27\lib\site-packages\gdata\service.py", line 793, in ProgrammaticLogin
raise BadAuthentication, 'Incorrect username or password'
gdata.service.BadAuthentication: Incorrect username or password
Why is it that even though the username/pass are correct and the username is in the company domain but on Google servers?