def __init__(self, api_key, api_secret=None, token=None, token_secret=None):

        # client key and secret for oauth1 session
        if api_key or token:
            self.oauth = OAuth1(client_key=api_key, client_secret=api_secret,
                                resource_owner_key=token, resource_owner_secret=token_secret)
        else:
            self.oauth = None

        self.public_only = token is None
        self.api_key = api_key
        self.api_secret = api_secret
        self.resource_owner_key = token
        self.resource_owner_secret = token_secret
Get segments of the file from Google Storage as a list.
dataset/ETHPy150Open sarumont/py-trello/trello/trelloclient.py/TrelloClient.__init__--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/billing-export-python/cloudstorage/storage_api.py/ReadBuffer._get_segments