{"action":"created","issue":{"url":"https://api.github.com/repos/keichan34/b2_client/issues/8","repository_url":"https://api.github.com/repos/keichan34/b2_client","labels_url":"https://api.github.com/repos/keichan34/b2_client/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/keichan34/b2_client/issues/8/comments","events_url":"https://api.github.com/repos/keichan34/b2_client/issues/8/events","html_url":"https://github.com/keichan34/b2_client/pull/8","id":316647790,"number":8,"title":"Add download/2 method to download a file with authorization and file_id","user":{"login":"sinourain","id":1026480,"avatar_url":"https://avatars0.githubusercontent.com/u/1026480?v=4","gravatar_id":"","url":"https://api.github.com/users/sinourain","html_url":"https://github.com/sinourain","followers_url":"https://api.github.com/users/sinourain/followers","following_url":"https://api.github.com/users/sinourain/following{/other_user}","gists_url":"https://api.github.com/users/sinourain/gists{/gist_id}","starred_url":"https://api.github.com/users/sinourain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinourain/subscriptions","organizations_url":"https://api.github.com/users/sinourain/orgs","repos_url":"https://api.github.com/users/sinourain/repos","events_url":"https://api.github.com/users/sinourain/events{/privacy}","received_events_url":"https://api.github.com/users/sinourain/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-23T03:13:01Z","updated_at":"2018-04-24T00:30:47Z","closed_at":"2018-04-24T00:30:38Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/keichan34/b2_client/pulls/8","html_url":"https://github.com/keichan34/b2_client/pull/8","diff_url":"https://github.com/keichan34/b2_client/pull/8.diff","patch_url":"https://github.com/keichan34/b2_client/pull/8.patch"},"body":"I just added a necessary method to download a file by file_id.\r\n\r\nWhen we watch a file details in Backblaze we get the Fguid (file_id for this dependency), this field is used as a parameter for this new method called download/2 (and obiusly it prevent a colicion with files with the same name).\r\n\r\nE.g. \r\n```\r\naccount_id = \"some_account_id\"\r\napplication_key = \"some_application_key\"\r\n{:ok, auth} =  B2Client.backend.authenticate(account_id, application_key)\r\nfile_id = \"some_file_id\"\r\n{:ok, file} =  B2Client.backend.download(auth, fille_id)\r\n```"},"comment":{"url":"https://api.github.com/repos/keichan34/b2_client/issues/comments/383764652","html_url":"https://github.com/keichan34/b2_client/pull/8#issuecomment-383764652","issue_url":"https://api.github.com/repos/keichan34/b2_client/issues/8","id":383764652,"user":{"login":"keichan34","id":1064513,"avatar_url":"https://avatars1.githubusercontent.com/u/1064513?v=4","gravatar_id":"","url":"https://api.github.com/users/keichan34","html_url":"https://github.com/keichan34","followers_url":"https://api.github.com/users/keichan34/followers","following_url":"https://api.github.com/users/keichan34/following{/other_user}","gists_url":"https://api.github.com/users/keichan34/gists{/gist_id}","starred_url":"https://api.github.com/users/keichan34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keichan34/subscriptions","organizations_url":"https://api.github.com/users/keichan34/orgs","repos_url":"https://api.github.com/users/keichan34/repos","events_url":"https://api.github.com/users/keichan34/events{/privacy}","received_events_url":"https://api.github.com/users/keichan34/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T00:30:47Z","updated_at":"2018-04-24T00:30:47Z","author_association":"OWNER","body":"Thanks ❤️ "}}
{"actor":{"display_login":"keichan34"}}