示例#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
示例#2
0
文件: document.py 项目: hussius/bcbb
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
示例#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
示例#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