title: Fetching thumbnail of Tableau workbook using python REST API
body: <p>Trying to display workbook name and its thumbnail in flask page but facing below error. However as per documentation it was mentioned that &quot;You must first call the workbooks.populate_preview_image method to access this data.&quot; since i am new to python unable to understand how to write the correct way of code.</p>
  <pre><code>  with server.auth.sign_in(tableau_auth):
      all_wb, pagination_item = server.workbooks.get()
      print(&quot;\nThere are {} workbooks on site: &quot;.format(pagination_item.total_available))
      for wb in all_wb:
          print(wb.id,wb.project_name, wb.name, wb.webpage_url,wb.owner_id,wb.preview_image)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/tPByU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tPByU.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/JOoed.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JOoed.png" alt="My Python + Flask Page" /></a></p>