{"action":"created","comment":{"url":"https://api.github.com/repos/minio/minio/pulls/comments/73767093","id":73767093,"diff_hunk":"@@ -0,0 +1,51 @@\n+# Using pre-signed URLs to download via the browser [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n+\n+Instead of using an S3-compatible client to download files, you can pre-sign a\n+request to download a specified file from the browser, even if its bucket is\n+private. The following is an annotated example of how this can be used in a\n+Node.js application, using [minio-js](https://github.com/minio/minio-js).\n+\n+This application will work out of the box, just copy each piece together into a\n+file and run it.\n+\n+## Code\n+\n+```javascript\n+const Minio = require('minio')\n+\n+var client = new Minio({\n+    endPoint: 'play.minio.io',\n+    port: 9000,\n+    secure: true,\n+    accessKey: 'Q3AM3UQ867SPQQA43P2F',\n+    secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'\n+})\n+```\n+\n+In order to sign the request, we need to log in to the database. This","path":"docs/cookbook/presigned-get-download-from-browser.md","position":25,"original_position":25,"commit_id":"1250c204f6aceb6b04f0a5aade0b51a5f781eb43","original_commit_id":"1250c204f6aceb6b04f0a5aade0b51a5f781eb43","user":{"login":"krishnasrinivas","id":634494,"avatar_url":"https://avatars.githubusercontent.com/u/634494?v=3","gravatar_id":"","url":"https://api.github.com/users/krishnasrinivas","html_url":"https://github.com/krishnasrinivas","followers_url":"https://api.github.com/users/krishnasrinivas/followers","following_url":"https://api.github.com/users/krishnasrinivas/following{/other_user}","gists_url":"https://api.github.com/users/krishnasrinivas/gists{/gist_id}","starred_url":"https://api.github.com/users/krishnasrinivas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krishnasrinivas/subscriptions","organizations_url":"https://api.github.com/users/krishnasrinivas/orgs","repos_url":"https://api.github.com/users/krishnasrinivas/repos","events_url":"https://api.github.com/users/krishnasrinivas/events{/privacy}","received_events_url":"https://api.github.com/users/krishnasrinivas/received_events","type":"User","site_admin":false},"body":"which database are you referring to?","created_at":"2016-08-05T22:14:20Z","updated_at":"2016-08-05T22:14:20Z","html_url":"https://github.com/minio/minio/pull/2366#discussion_r73767093","pull_request_url":"https://api.github.com/repos/minio/minio/pulls/2366","_links":{"self":{"href":"https://api.github.com/repos/minio/minio/pulls/comments/73767093"},"html":{"href":"https://github.com/minio/minio/pull/2366#discussion_r73767093"},"pull_request":{"href":"https://api.github.com/repos/minio/minio/pulls/2366"}}},"pull_request":{"url":"https://api.github.com/repos/minio/minio/pulls/2366","id":80312757,"html_url":"https://github.com/minio/minio/pull/2366","diff_url":"https://github.com/minio/minio/pull/2366.diff","patch_url":"https://github.com/minio/minio/pull/2366.patch","issue_url":"https://api.github.com/repos/minio/minio/issues/2366","number":2366,"state":"open","locked":false,"title":"add cookbook documentation","user":{"login":"brendanashworth","id":3038254,"avatar_url":"https://avatars.githubusercontent.com/u/3038254?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanashworth","html_url":"https://github.com/brendanashworth","followers_url":"https://api.github.com/users/brendanashworth/followers","following_url":"https://api.github.com/users/brendanashworth/following{/other_user}","gists_url":"https://api.github.com/users/brendanashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanashworth/subscriptions","organizations_url":"https://api.github.com/users/brendanashworth/orgs","repos_url":"https://api.github.com/users/brendanashworth/repos","events_url":"https://api.github.com/users/brendanashworth/events{/privacy}","received_events_url":"https://api.github.com/users/brendanashworth/received_events","type":"User","site_admin":false},"body":"Adds a few recipes that allow users to get started quickly using minio in\r\ntheir applications.\r\n\r\nFixes: https://github.com/minio/minio/issues/2329\r\nFixes: https://github.com/minio/minio/issues/2328\r\n\r\nr= @krishnasrinivas ?","created_at":"2016-08-05T21:55:41Z","updated_at":"2016-08-05T22:14:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aaec73191067b3f24d72a873860fc8750474d91d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/minio/minio/pulls/2366/commits","review_comments_url":"https://api.github.com/repos/minio/minio/pulls/2366/comments","review_comment_url":"https://api.github.com/repos/minio/minio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minio/minio/issues/2366/comments","statuses_url":"https://api.github.com/repos/minio/minio/statuses/1250c204f6aceb6b04f0a5aade0b51a5f781eb43","head":{"label":"brendanashworth:add-cookbook-recipes","ref":"add-cookbook-recipes","sha":"1250c204f6aceb6b04f0a5aade0b51a5f781eb43","user":{"login":"brendanashworth","id":3038254,"avatar_url":"https://avatars.githubusercontent.com/u/3038254?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanashworth","html_url":"https://github.com/brendanashworth","followers_url":"https://api.github.com/users/brendanashworth/followers","following_url":"https://api.github.com/users/brendanashworth/following{/other_user}","gists_url":"https://api.github.com/users/brendanashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanashworth/subscriptions","organizations_url":"https://api.github.com/users/brendanashworth/orgs","repos_url":"https://api.github.com/users/brendanashworth/repos","events_url":"https://api.github.com/users/brendanashworth/events{/privacy}","received_events_url":"https://api.github.com/users/brendanashworth/received_events","type":"User","site_admin":false},"repo":{"id":53272551,"name":"minio","full_name":"brendanashworth/minio","owner":{"login":"brendanashworth","id":3038254,"avatar_url":"https://avatars.githubusercontent.com/u/3038254?v=3","gravatar_id":"","url":"https://api.github.com/users/brendanashworth","html_url":"https://github.com/brendanashworth","followers_url":"https://api.github.com/users/brendanashworth/followers","following_url":"https://api.github.com/users/brendanashworth/following{/other_user}","gists_url":"https://api.github.com/users/brendanashworth/gists{/gist_id}","starred_url":"https://api.github.com/users/brendanashworth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendanashworth/subscriptions","organizations_url":"https://api.github.com/users/brendanashworth/orgs","repos_url":"https://api.github.com/users/brendanashworth/repos","events_url":"https://api.github.com/users/brendanashworth/events{/privacy}","received_events_url":"https://api.github.com/users/brendanashworth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brendanashworth/minio","description":"Minio is an object storage server compatible with Amazon S3 and licensed under Apache 2.0 License","fork":true,"url":"https://api.github.com/repos/brendanashworth/minio","forks_url":"https://api.github.com/repos/brendanashworth/minio/forks","keys_url":"https://api.github.com/repos/brendanashworth/minio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brendanashworth/minio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brendanashworth/minio/teams","hooks_url":"https://api.github.com/repos/brendanashworth/minio/hooks","issue_events_url":"https://api.github.com/repos/brendanashworth/minio/issues/events{/number}","events_url":"https://api.github.com/repos/brendanashworth/minio/events","assignees_url":"https://api.github.com/repos/brendanashworth/minio/assignees{/user}","branches_url":"https://api.github.com/repos/brendanashworth/minio/branches{/branch}","tags_url":"https://api.github.com/repos/brendanashworth/minio/tags","blobs_url":"https://api.github.com/repos/brendanashworth/minio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brendanashworth/minio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brendanashworth/minio/git/refs{/sha}","trees_url":"https://api.github.com/repos/brendanashworth/minio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brendanashworth/minio/statuses/{sha}","languages_url":"https://api.github.com/repos/brendanashworth/minio/languages","stargazers_url":"https://api.github.com/repos/brendanashworth/minio/stargazers","contributors_url":"https://api.github.com/repos/brendanashworth/minio/contributors","subscribers_url":"https://api.github.com/repos/brendanashworth/minio/subscribers","subscription_url":"https://api.github.com/repos/brendanashworth/minio/subscription","commits_url":"https://api.github.com/repos/brendanashworth/minio/commits{/sha}","git_commits_url":"https://api.github.com/repos/brendanashworth/minio/git/commits{/sha}","comments_url":"https://api.github.com/repos/brendanashworth/minio/comments{/number}","issue_comment_url":"https://api.github.com/repos/brendanashworth/minio/issues/comments{/number}","contents_url":"https://api.github.com/repos/brendanashworth/minio/contents/{+path}","compare_url":"https://api.github.com/repos/brendanashworth/minio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brendanashworth/minio/merges","archive_url":"https://api.github.com/repos/brendanashworth/minio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brendanashworth/minio/downloads","issues_url":"https://api.github.com/repos/brendanashworth/minio/issues{/number}","pulls_url":"https://api.github.com/repos/brendanashworth/minio/pulls{/number}","milestones_url":"https://api.github.com/repos/brendanashworth/minio/milestones{/number}","notifications_url":"https://api.github.com/repos/brendanashworth/minio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brendanashworth/minio/labels{/name}","releases_url":"https://api.github.com/repos/brendanashworth/minio/releases{/id}","deployments_url":"https://api.github.com/repos/brendanashworth/minio/deployments","created_at":"2016-03-06T19:41:04Z","updated_at":"2016-03-06T19:41:06Z","pushed_at":"2016-08-05T21:53:20Z","git_url":"git://github.com/brendanashworth/minio.git","ssh_url":"git@github.com:brendanashworth/minio.git","clone_url":"https://github.com/brendanashworth/minio.git","svn_url":"https://github.com/brendanashworth/minio","homepage":"http://minio.io/download/","size":15008,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"minio:master","ref":"master","sha":"d28fb5fe232151cd78e7bb145eaa025afa921683","user":{"login":"minio","id":695951,"avatar_url":"https://avatars.githubusercontent.com/u/695951?v=3","gravatar_id":"","url":"https://api.github.com/users/minio","html_url":"https://github.com/minio","followers_url":"https://api.github.com/users/minio/followers","following_url":"https://api.github.com/users/minio/following{/other_user}","gists_url":"https://api.github.com/users/minio/gists{/gist_id}","starred_url":"https://api.github.com/users/minio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minio/subscriptions","organizations_url":"https://api.github.com/users/minio/orgs","repos_url":"https://api.github.com/users/minio/repos","events_url":"https://api.github.com/users/minio/events{/privacy}","received_events_url":"https://api.github.com/users/minio/received_events","type":"Organization","site_admin":false},"repo":{"id":29261473,"name":"minio","full_name":"minio/minio","owner":{"login":"minio","id":695951,"avatar_url":"https://avatars.githubusercontent.com/u/695951?v=3","gravatar_id":"","url":"https://api.github.com/users/minio","html_url":"https://github.com/minio","followers_url":"https://api.github.com/users/minio/followers","following_url":"https://api.github.com/users/minio/following{/other_user}","gists_url":"https://api.github.com/users/minio/gists{/gist_id}","starred_url":"https://api.github.com/users/minio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minio/subscriptions","organizations_url":"https://api.github.com/users/minio/orgs","repos_url":"https://api.github.com/users/minio/repos","events_url":"https://api.github.com/users/minio/events{/privacy}","received_events_url":"https://api.github.com/users/minio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minio/minio","description":"Minio is an object storage server compatible with Amazon S3 and licensed under Apache 2.0 License","fork":false,"url":"https://api.github.com/repos/minio/minio","forks_url":"https://api.github.com/repos/minio/minio/forks","keys_url":"https://api.github.com/repos/minio/minio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minio/minio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minio/minio/teams","hooks_url":"https://api.github.com/repos/minio/minio/hooks","issue_events_url":"https://api.github.com/repos/minio/minio/issues/events{/number}","events_url":"https://api.github.com/repos/minio/minio/events","assignees_url":"https://api.github.com/repos/minio/minio/assignees{/user}","branches_url":"https://api.github.com/repos/minio/minio/branches{/branch}","tags_url":"https://api.github.com/repos/minio/minio/tags","blobs_url":"https://api.github.com/repos/minio/minio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minio/minio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minio/minio/git/refs{/sha}","trees_url":"https://api.github.com/repos/minio/minio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minio/minio/statuses/{sha}","languages_url":"https://api.github.com/repos/minio/minio/languages","stargazers_url":"https://api.github.com/repos/minio/minio/stargazers","contributors_url":"https://api.github.com/repos/minio/minio/contributors","subscribers_url":"https://api.github.com/repos/minio/minio/subscribers","subscription_url":"https://api.github.com/repos/minio/minio/subscription","commits_url":"https://api.github.com/repos/minio/minio/commits{/sha}","git_commits_url":"https://api.github.com/repos/minio/minio/git/commits{/sha}","comments_url":"https://api.github.com/repos/minio/minio/comments{/number}","issue_comment_url":"https://api.github.com/repos/minio/minio/issues/comments{/number}","contents_url":"https://api.github.com/repos/minio/minio/contents/{+path}","compare_url":"https://api.github.com/repos/minio/minio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minio/minio/merges","archive_url":"https://api.github.com/repos/minio/minio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minio/minio/downloads","issues_url":"https://api.github.com/repos/minio/minio/issues{/number}","pulls_url":"https://api.github.com/repos/minio/minio/pulls{/number}","milestones_url":"https://api.github.com/repos/minio/minio/milestones{/number}","notifications_url":"https://api.github.com/repos/minio/minio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minio/minio/labels{/name}","releases_url":"https://api.github.com/repos/minio/minio/releases{/id}","deployments_url":"https://api.github.com/repos/minio/minio/deployments","created_at":"2015-01-14T19:23:58Z","updated_at":"2016-08-05T20:42:19Z","pushed_at":"2016-08-05T21:55:42Z","git_url":"git://github.com/minio/minio.git","ssh_url":"git@github.com:minio/minio.git","clone_url":"https://github.com/minio/minio.git","svn_url":"https://github.com/minio/minio","homepage":"https://minio.io/downloads/","size":16632,"stargazers_count":2004,"watchers_count":2004,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":166,"mirror_url":null,"open_issues_count":46,"forks":166,"open_issues":46,"watchers":2004,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minio/minio/pulls/2366"},"html":{"href":"https://github.com/minio/minio/pull/2366"},"issue":{"href":"https://api.github.com/repos/minio/minio/issues/2366"},"comments":{"href":"https://api.github.com/repos/minio/minio/issues/2366/comments"},"review_comments":{"href":"https://api.github.com/repos/minio/minio/pulls/2366/comments"},"review_comment":{"href":"https://api.github.com/repos/minio/minio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minio/minio/pulls/2366/commits"},"statuses":{"href":"https://api.github.com/repos/minio/minio/statuses/1250c204f6aceb6b04f0a5aade0b51a5f781eb43"}}}}
{"actor":{"display_login":"krishnasrinivas"}}