old_contents: #!/usr/bin/env python
  
  import sys
  sys.path += ['../src']
  
  from epidb_client import EpiDBClient
  
  api_key = 'your-epidb-api-key-here'
  data = {
      'user_id': '1c66bb91-33fd-4c6c-9c11-8ddd94164ae8',
      'date': '2009-09-09 09:09:09',
      'answers': {
          'q1': 1,
          'q2': True,
          'q3': [ 1, 2, 3 ],
          'q4': 'Jakarta'
      }
  }
  
  client = EpiDBClient(api_key)
  result = client.response_submit(data)
  
  status = result['stat']
  
  print "status:", status
  
  if status == 'ok':
      print "id:", result['id']
  else:
      print "error code:", result['code']
      print "       msg:", result['msg']
  
  
  
  
new_contents: #!/usr/bin/env python
  
  import sys
  sys.path += ['../src']
  
  from epidb_client import EpiDBClient
  
  api_key = 'your-epidb-api-key-here'
  data = {
      'user_id': '1c66bb91-33fd-4c6c-9c11-8ddd94164ae8',
      'date': '2009-09-09 09:09:09',
      'survey_id': 'example-1.0',
      'answers': {
          'q1': 1,
          'q2': True,
          'q3': [ 1, 2, 3 ],
          'q4': 'Jakarta'
      }
  }
  
  client = EpiDBClient(api_key)
  result = client.response_submit(data)
  
  status = result['stat']
  
  print "status:", status
  
  if status == 'ok':
      print "id:", result['id']
  else:
      print "error code:", result['code']
      print "       msg:", result['msg']
  
  
  
  
subject: Add survey_id.