title: bad request error 400 google api for translation python
body: <p>calling API and getting the error need to translate from English to France but getting this error so I have used  this code but it is not working properly </p>
  
  <p>code:</p>
  
  <pre><code>from __future__ import print_function
  
  __author__ = 'jcgregorio@google.com (Joe Gregorio)'
  
  from googleapiclient.discovery import build
  
  
  def main():
  
    service = build('translate', 'v2',
              developerKey='AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0')
    print(service.translations().list(
        source='en',
        target='fr',
       q="flower"
      ).execute())
  
  if __name__ == '__main__':
    main()
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>Traceback (most recent call last):
    File "trail.py", line 19, in &lt;module&gt;
      main()
    File "trail.py", line 15, in main
      q="flower"
    File "build/bdist.linux-i686/egg/oauth2client/_helpers.py", line 133, in positional_wrapper
    File "build/bdist.linux-i686/egg/googleapiclient/http.py", line 840, in execute
  googleapiclient.errors.HttpError: &lt;HttpError 400 when requesting https://www.googleapis.com/language/translate/v2?q=flower&amp;source=en&amp;alt=json&amp;target=fr&amp;key=AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0 returned "Bad Request"&gt;
  </code></pre>