Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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
Beispiel #4
0
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