def get_client(encoded_credentials=None): """Get a DocsService client""" client = gdata.docs.service.DocsService() # If credentials were supplied, authenticate the client as well if encoded_credentials: authenticate(client, encoded_credentials) return client
def get_client(encoded_credentials=None): """Get a DocsService client""" client = gdata.docs.service.DocsService() # If credentials were supplied, authenticate the client as well if encoded_credentials: authenticate(client,encoded_credentials) return client
def get_client(encoded_credentials=None): """Get a SpreadsheetsService client""" # Create a client class which will make HTTP requests with Google Docs server. client = gdata.spreadsheet.service.SpreadsheetsService() # If credentials were supplied, authenticate the client as well if encoded_credentials: authenticate(client, encoded_credentials) return client