title: generate powerpoint automatically using google-slides-api
body: <p>I was using this <a href="http://wescpy.blogspot.com/2016/11/generating-slides-from-spreadsheet-data.html" rel="nofollow noreferrer">website</a> as a source to auto-generate google slides using the contents in google spreadsheet. All works fine but I cant make it save it to a folder in my google drive. Can someone help me?</p>
  
  <p>I tried:</p>
  
  <pre><code>folder_id = 'xxx'
  file_metadata = {'title': 'spreadsheet data DEMO','parents': {'id':folder_id}}
  
  DATA = {'title': 'Generating slides from spreadsheet data DEMO'}
  rsp = SLIDES.presentations().create(body=file_metadata).execute()
  deckID = rsp['presentationId']
  titleSlide = rsp['slides'][0]
  titleID = titleSlide['pageElements'][0]['objectId']
  subtitleID = titleSlide['pageElements'][1]['objectId']
  </code></pre>
  
  <p>then getting an error:</p>
  
  <blockquote>
    <p>HttpError: https://slides.googleapis.com/v1/presentations?alt=json returned
    "Invalid JSON payload received. Unknown name "parents": Cannot find
    field."></p>
  </blockquote>