def GetFeeds(client):
 feed_service = client.GetService('FeedService', 'v201609')
 feeds = []
 more_pages = True
 selector = {'fields': ['Id', 'Name', 'Attributes'], 'predicates': [{'field': 'Origin', 'operator': 'EQUALS', 'values': ['USER']}, {'field': 'FeedStatus', 'operator': 'EQUALS', 'values': ['ENABLED']}], 'paging': {'startIndex': 0, 'numberResults': PAGE_SIZE}}
 while more_pages:
  page = feed_service.get(selector)
  if ('entries' in page):
   feeds.extend(page['entries'])
  selector['paging']['startIndex'] += PAGE_SIZE
  more_pages = (selector['paging']['startIndex'] < int(page['totalNumEntries']))
 return feeds

def GetFeeds ( client ) : feed_service = client . GetService ( 'FeedService' , 'v201609' ) feeds = [ ] more_pages = True selector = { 'fields' : [ 'Id' , 'Name' , 'Attributes' ] , 'predicates' : [ { 'field' : 'Origin' , 'operator' : 'EQUALS' , 'values' : [ 'USER' ] } , { 'field' : 'FeedStatus' , 'operator' : 'EQUALS' , 'values' : [ 'ENABLED' ] } ] , 'paging' : { 'startIndex' : 0 , 'numberResults' : PAGE_SIZE } } while more_pages : page = feed_service . get ( selector ) if ( 'entries' in page ) : feeds . extend ( page [ 'entries' ] ) selector [ 'paging' ] [ 'startIndex' ] += PAGE_SIZE more_pages = ( selector [ 'paging' ] [ 'startIndex' ] < int ( page [ 'totalNumEntries' ] ) ) return feeds
returns a list of all enabled feeds .