def print_segments(segments_response):
 print('------ Segments Collection -------')
 print_pagination_info(segments_response)
 print()
 for segment in segments_response.get('items', []):
  print(('Segment ID = %s' % segment.get('id')))
  print(('Kind       = %s' % segment.get('kind')))
  print(('Self Link  = %s' % segment.get('selfLink')))
  print(('Name       = %s' % segment.get('name')))
  print(('Definition = %s' % segment.get('definition')))
  print(('Created    = %s' % segment.get('created')))
  print(('Updated    = %s' % segment.get('updated')))
  print()

def print_segments ( segments_response ) : print ( '------ Segments Collection -------' ) print_pagination_info ( segments_response ) print ( ) for segment in segments_response . get ( 'items' , [ ] ) : print ( ( 'Segment ID = %s' % segment . get ( 'id' ) ) ) print ( ( 'Kind       = %s' % segment . get ( 'kind' ) ) ) print ( ( 'Self Link  = %s' % segment . get ( 'selfLink' ) ) ) print ( ( 'Name       = %s' % segment . get ( 'name' ) ) ) print ( ( 'Definition = %s' % segment . get ( 'definition' ) ) ) print ( ( 'Created    = %s' % segment . get ( 'created' ) ) ) print ( ( 'Updated    = %s' % segment . get ( 'updated' ) ) ) print ( )
prints all the segment info in the segments collection .