def print_accounts(accounts_response):
 print('------ Account Collection -------')
 print_pagination_info(accounts_response)
 print()
 for account in accounts_response.get('items', []):
  print(('Account ID      = %s' % account.get('id')))
  print(('Kind            = %s' % account.get('kind')))
  print(('Self Link       = %s' % account.get('selfLink')))
  print(('Account Name    = %s' % account.get('name')))
  print(('Created         = %s' % account.get('created')))
  print(('Updated         = %s' % account.get('updated')))
  child_link = account.get('childLink')
  print(('Child link href = %s' % child_link.get('href')))
  print(('Child link type = %s' % child_link.get('type')))
  print()
 if (not accounts_response.get('items')):
  print('No accounts found.\n')

def print_accounts ( accounts_response ) : print ( '------ Account Collection -------' ) print_pagination_info ( accounts_response ) print ( ) for account in accounts_response . get ( 'items' , [ ] ) : print ( ( 'Account ID      = %s' % account . get ( 'id' ) ) ) print ( ( 'Kind            = %s' % account . get ( 'kind' ) ) ) print ( ( 'Self Link       = %s' % account . get ( 'selfLink' ) ) ) print ( ( 'Account Name    = %s' % account . get ( 'name' ) ) ) print ( ( 'Created         = %s' % account . get ( 'created' ) ) ) print ( ( 'Updated         = %s' % account . get ( 'updated' ) ) ) child_link = account . get ( 'childLink' ) print ( ( 'Child link href = %s' % child_link . get ( 'href' ) ) ) print ( ( 'Child link type = %s' % child_link . get ( 'type' ) ) ) print ( ) if ( not accounts_response . get ( 'items' ) ) : print ( 'No accounts found.\n' )
prints all the account info in the accounts collection .