def getFolderItems(self, folderId, userName=None):
        if userName == None:
            userName = self.user.username
        params = urllib.urlencode({'token': self.user.token, 'f': 'json'})
        request = self.user.portalUrl + '/sharing/rest/content/users/' + userName + '/' + folderId + '?' + params
        folderContent = json.loads(urllib.urlopen(request).read())
        return folderContent['items']
Returns all items (list of dictionaries) for an AGOL folder using the folder ID.
dataset/ETHPy150Open Esri/ago-tools/agoTools/utilities.py/Utilities.getFolderItems