예제 #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
파일: spreadsheet.py 프로젝트: aminmg/bcbb
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