{"action":"opened","issue":{"url":"https://api.github.com/repos/dropbox/dropbox-sdk-js/issues/75","repository_url":"https://api.github.com/repos/dropbox/dropbox-sdk-js","labels_url":"https://api.github.com/repos/dropbox/dropbox-sdk-js/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/dropbox-sdk-js/issues/75/comments","events_url":"https://api.github.com/repos/dropbox/dropbox-sdk-js/issues/75/events","html_url":"https://github.com/dropbox/dropbox-sdk-js/issues/75","id":178247446,"number":75,"title":"Get URL to populate image field","user":{"login":"shiftsave","id":1121873,"avatar_url":"https://avatars.githubusercontent.com/u/1121873?v=3","gravatar_id":"","url":"https://api.github.com/users/shiftsave","html_url":"https://github.com/shiftsave","followers_url":"https://api.github.com/users/shiftsave/followers","following_url":"https://api.github.com/users/shiftsave/following{/other_user}","gists_url":"https://api.github.com/users/shiftsave/gists{/gist_id}","starred_url":"https://api.github.com/users/shiftsave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiftsave/subscriptions","organizations_url":"https://api.github.com/users/shiftsave/orgs","repos_url":"https://api.github.com/users/shiftsave/repos","events_url":"https://api.github.com/users/shiftsave/events{/privacy}","received_events_url":"https://api.github.com/users/shiftsave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-21T05:06:47Z","updated_at":"2016-09-21T05:06:47Z","closed_at":null,"body":"Hi!\r\n\r\nI'm trying to leverage the API to populate the content of my app's dropbox folder onto a React component.\r\n\r\nHere is my code, I tried to use filesDownload but unfortunately that does not provide to the URL of the image.\r\n\r\n`import React from 'react';\r\nimport Dropbox from 'dropbox';\r\nconst client = new Dropbox({ accessToken: 'cOE9hfHzuGYAAAAAAAAVgJXmZqSqDCE-1U-3NX7YxciSVg6gccmF1HVL93qXQXdA' });\r\n\r\n\r\nconst ImageList = ({content}) => {\r\n  const folderItems = content.map((content) => {\r\n    return(\r\n      client.filesDownload({path: content.path_lower})\r\n        .then(content => {\r\n          <img src={content} alt={content.name} />\r\n        }\r\n      )\r\n    )\r\n  });\r\n\r\n  return (\r\n    <ul>\r\n      {folderItems}\r\n    </ul>\r\n  );\r\n}\r\n\r\nexport default ImageList;\r\n`\r\n"}}
{"actor":{"display_login":"shiftsave"}}