title: Google API Client for Python. Batch requests: how to access to a specific request in the callback
body: <p>According to official <a href="https://developers.google.com/api-client-library/python/guide/batch" rel="nofollow noreferrer">doc</a>, you can make batch request through Google API Client Libraries for Python. Here, there is an example</p>
  
  <pre><code>from apiclient.http import BatchHttpRequest
  
  def list_animals(request_id, response, exception):
    if exception is not None:
      # Do something with the exception
      pass
    else:
      # Do something with the response
      pass
  
  def list_farmers(request_id, response):
    """Do something with the farmers list response."""
    pass
  
  service = build('farm', 'v2')
  
  batch = service.new_batch_http_request()
  
  batch.add(service.animals().list(), callback=list_animals)
  batch.add(service.farmers().list(), callback=list_farmers)
  batch.execute(http=http)
  </code></pre>
  
  <p>Is there a way to access to the request in the callback. E.g., print the request (not the request_id) if there is an exception?</p>