title: Display images from dropbox with javascript api
body: <p>I'm trying to create a page that could show all pictures in a dropbox folder through the Javascript API.</p>
  
  <p>I was able to set up my dropbox app properly, and I am able to get a list of files.</p>
  
  <p>I'm stuck at the part to get a URL I could actually use to show the picture in HTML. I tried the following code, to try and get the URL for 1 image for the time being:</p>
  
  <pre><code>dbx.filesListFolder({path: ""})
      .then(function(response) {
          console.log(response);
          // ↑ this works!
          dbx.filesGetThumbnail({path: response.entries[0].path_display, format: "jpeg", size: "w64h64"})
              .then(function(result) {
                  window.data = result;
                  console.log(result);
              })
          // closures and rest of code...
  </code></pre>
  
  <p>Inspecting the <code>window.data</code> or the <code>console.log(result)</code>, I cannot seem to find any URL I could use in my HTML.</p>
  
  <p>Any pointers to head me in the right direction? I'm still new to the Dropbox Javascript API.</p>