def segments(self): """ Return the list of valid segments for the current report suite """ if self.account.cache: data = self.request_cached('Segments', 'Get') else: data = self.request('Segments', 'Get') return Segment.list('segments', data, self, 'name', 'id')
def segments(self): """ Return the list of valid segments for the current report suite """ data = self.request('Segments', 'Get') return Segment.list('segments', data, self, 'name', 'id')
def segments(self): data = self.request('ReportSuite', 'GetSegments')[0]['sc_segments'] return Segment.list('segments', data, self, 'name', 'id')