{"action":"opened","issue":{"url":"https://api.github.com/repos/KeepingFoundThingsFound/itemMirror/issues/89","repository_url":"https://api.github.com/repos/KeepingFoundThingsFound/itemMirror","labels_url":"https://api.github.com/repos/KeepingFoundThingsFound/itemMirror/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/KeepingFoundThingsFound/itemMirror/issues/89/comments","events_url":"https://api.github.com/repos/KeepingFoundThingsFound/itemMirror/issues/89/events","html_url":"https://github.com/KeepingFoundThingsFound/itemMirror/issues/89","id":193367138,"number":89,"title":"Support \"getURL\" method through the itemDriver","user":{"login":"williampauljones1","id":3260150,"avatar_url":"https://avatars.githubusercontent.com/u/3260150?v=3","gravatar_id":"","url":"https://api.github.com/users/williampauljones1","html_url":"https://github.com/williampauljones1","followers_url":"https://api.github.com/users/williampauljones1/followers","following_url":"https://api.github.com/users/williampauljones1/following{/other_user}","gists_url":"https://api.github.com/users/williampauljones1/gists{/gist_id}","starred_url":"https://api.github.com/users/williampauljones1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williampauljones1/subscriptions","organizations_url":"https://api.github.com/users/williampauljones1/orgs","repos_url":"https://api.github.com/users/williampauljones1/repos","events_url":"https://api.github.com/users/williampauljones1/events{/privacy}","received_events_url":"https://api.github.com/users/williampauljones1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-04T18:43:17Z","updated_at":"2016-12-04T18:43:17Z","closed_at":null,"body":"Brandon tells me there is a method .getURL listed for the itemDriver class. But not yet supported? \r\nWe would want to use this for web page/web app access to the content of a file \"a\" of the folder \"A\" that is  represented by an itemMIrror object (i.e.,, where file \"a\" is represented by an association (.localItem = \"a\")\r\n\r\nitemDriver would provide a uniform way to get access to a file's contents even though access on the back end will vary with storage provider:\r\n\r\n- Droppox -- probably use /media (https://www.dropbox.com/developers-v1/core/docs#media)\r\n\r\n- Drive --?? alt=media? (https://developers.google.com/drive/v3/web/manage-downloads).\r\n\r\nWe currently care most about this in the context of displaying a picture within the web page of an itemMirror app such as Life Canvas (or Picture Projector or FileDocs). \r\n\r\nConsider Life Canvas. The user wishes to associate a picture with subfolder which will then be used to represent this subfolder in Life Canvas display of the parent folder's contents (esp. its subfolders). Currently, users can select any image on the Web (e..g, a jpeg picture) and reference this image via its URL. But often the best image by which to represent the subfolder is not on the Web but rather _within_ the subfolder e.g., as the content of a jpeg file. Brandon recently added code to support a simple browse into subfolder content and the selection of a file. This file's ID (drive) or \"name\" can be recorded in a namespace  attribute (e.g., \"associatedPicture\") and used (possibly as appended  to \"itemDescribed\" (see #39 ) to fully specify the file to the store provider (Dropbox or Drive via itemDriver). If we can then get back a valid URL (even if only temporarily valid) then this URL can provide Web access to file contents.\r\n\r\nAs a secondary \"nice to have\", depending upon speed, getURL would also be used to provide thumbnail display of image files in the browse dialog."}}
{"actor":{"display_login":"williampauljones1"}}