uw_canvas/accounts.py
def get_sub_accounts(self, account_id, params={}):
        """
        Return list of subaccounts within the account with the passed
        canvas id.

        https://canvas.instructure.com/doc/api/accounts.html#method.accounts.sub_accounts
        """
        url = ACCOUNTS_API.format(account_id) + "/sub_accounts"

        accounts = []
        for datum in self._get_paged_resource(url, params=params):
            accounts.append(CanvasAccount(data=datum))

        return accounts
def get_sub_accounts(self, account_id, params={}):
        url = ACCOUNTS_API.format(account_id) + "/sub_accounts"

        accounts = []
        for datum in self._get_paged_resource(url, params=params):
            accounts.append(CanvasAccount(data=datum))

        return accounts
def get_sub_accounts ( self , account_id , params = { } ) : url = ACCOUNTS_API . format ( account_id ) + "/sub_accounts" accounts = [ ] for datum in self . _get_paged_resource ( url , params = params ) : accounts . append ( CanvasAccount ( data = datum ) ) return accounts
Return list of subaccounts within the account with the passed
        canvas id.

        https://canvas.instructure.com/doc/api/accounts.html#method.accounts.sub_accounts
Return list of subaccounts within the account with the passed canvas id .