{"action":"created","comment":{"url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/comments/155700226","pull_request_review_id":82062789,"id":155700226,"diff_hunk":"@@ -97,4 +97,33 @@ public function upload_file($filepath, $keyname) {\n         return $s3url;\n     }\n \n+    /**\n+     * Downloads a file from s3 to supplied path.\n+     *\n+     * @param string $filepath Local file path.\n+     * @param string $keyname  S3 keyname.\n+     * @return void\n+     */\n+    public function download_file($filepath, $keyname) {","path":"classes/client/s3_client.php","position":11,"original_position":11,"commit_id":"9e0dad38ae4d6f5ba92d7af5898811e6f0c9bf77","original_commit_id":"9e0dad38ae4d6f5ba92d7af5898811e6f0c9bf77","user":{"login":"mattporritt","id":7369127,"avatar_url":"https://avatars1.githubusercontent.com/u/7369127?v=4","gravatar_id":"","url":"https://api.github.com/users/mattporritt","html_url":"https://github.com/mattporritt","followers_url":"https://api.github.com/users/mattporritt/followers","following_url":"https://api.github.com/users/mattporritt/following{/other_user}","gists_url":"https://api.github.com/users/mattporritt/gists{/gist_id}","starred_url":"https://api.github.com/users/mattporritt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattporritt/subscriptions","organizations_url":"https://api.github.com/users/mattporritt/orgs","repos_url":"https://api.github.com/users/mattporritt/repos","events_url":"https://api.github.com/users/mattporritt/events{/privacy}","received_events_url":"https://api.github.com/users/mattporritt/received_events","type":"User","site_admin":false},"body":"this method should probably return $result to allow for better error handling","created_at":"2017-12-08T04:06:22Z","updated_at":"2017-12-08T04:06:22Z","html_url":"https://github.com/catalyst/moodle-tool_s3logs/pull/1#discussion_r155700226","pull_request_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/comments/155700226"},"html":{"href":"https://github.com/catalyst/moodle-tool_s3logs/pull/1#discussion_r155700226"},"pull_request":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1","id":157159273,"html_url":"https://github.com/catalyst/moodle-tool_s3logs/pull/1","diff_url":"https://github.com/catalyst/moodle-tool_s3logs/pull/1.diff","patch_url":"https://github.com/catalyst/moodle-tool_s3logs/pull/1.patch","issue_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/1","number":1,"state":"open","locked":false,"title":"Add course log fetch CLI script","user":{"login":"kenneth-hendricks","id":17265456,"avatar_url":"https://avatars3.githubusercontent.com/u/17265456?v=4","gravatar_id":"","url":"https://api.github.com/users/kenneth-hendricks","html_url":"https://github.com/kenneth-hendricks","followers_url":"https://api.github.com/users/kenneth-hendricks/followers","following_url":"https://api.github.com/users/kenneth-hendricks/following{/other_user}","gists_url":"https://api.github.com/users/kenneth-hendricks/gists{/gist_id}","starred_url":"https://api.github.com/users/kenneth-hendricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenneth-hendricks/subscriptions","organizations_url":"https://api.github.com/users/kenneth-hendricks/orgs","repos_url":"https://api.github.com/users/kenneth-hendricks/repos","events_url":"https://api.github.com/users/kenneth-hendricks/events{/privacy}","received_events_url":"https://api.github.com/users/kenneth-hendricks/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-08T03:59:36Z","updated_at":"2017-12-08T04:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff6dd7019b22bd446742ce70382146c253621b6c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/1/comments","statuses_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/statuses/9e0dad38ae4d6f5ba92d7af5898811e6f0c9bf77","head":{"label":"catalyst:course-log-fetcher","ref":"course-log-fetcher","sha":"9e0dad38ae4d6f5ba92d7af5898811e6f0c9bf77","user":{"login":"catalyst","id":47789,"avatar_url":"https://avatars1.githubusercontent.com/u/47789?v=4","gravatar_id":"","url":"https://api.github.com/users/catalyst","html_url":"https://github.com/catalyst","followers_url":"https://api.github.com/users/catalyst/followers","following_url":"https://api.github.com/users/catalyst/following{/other_user}","gists_url":"https://api.github.com/users/catalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/catalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalyst/subscriptions","organizations_url":"https://api.github.com/users/catalyst/orgs","repos_url":"https://api.github.com/users/catalyst/repos","events_url":"https://api.github.com/users/catalyst/events{/privacy}","received_events_url":"https://api.github.com/users/catalyst/received_events","type":"Organization","site_admin":false},"repo":{"id":99625082,"name":"moodle-tool_s3logs","full_name":"catalyst/moodle-tool_s3logs","owner":{"login":"catalyst","id":47789,"avatar_url":"https://avatars1.githubusercontent.com/u/47789?v=4","gravatar_id":"","url":"https://api.github.com/users/catalyst","html_url":"https://github.com/catalyst","followers_url":"https://api.github.com/users/catalyst/followers","following_url":"https://api.github.com/users/catalyst/following{/other_user}","gists_url":"https://api.github.com/users/catalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/catalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalyst/subscriptions","organizations_url":"https://api.github.com/users/catalyst/orgs","repos_url":"https://api.github.com/users/catalyst/repos","events_url":"https://api.github.com/users/catalyst/events{/privacy}","received_events_url":"https://api.github.com/users/catalyst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/catalyst/moodle-tool_s3logs","description":null,"fork":false,"url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs","forks_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/forks","keys_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/teams","hooks_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/hooks","issue_events_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/events{/number}","events_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/events","assignees_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/assignees{/user}","branches_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/branches{/branch}","tags_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/tags","blobs_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/refs{/sha}","trees_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/statuses/{sha}","languages_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/languages","stargazers_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/stargazers","contributors_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/contributors","subscribers_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/subscribers","subscription_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/subscription","commits_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/commits{/sha}","git_commits_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/commits{/sha}","comments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/comments{/number}","issue_comment_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/comments{/number}","contents_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/contents/{+path}","compare_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/merges","archive_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/downloads","issues_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues{/number}","pulls_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls{/number}","milestones_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/milestones{/number}","notifications_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/labels{/name}","releases_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/releases{/id}","deployments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/deployments","created_at":"2017-08-07T22:13:28Z","updated_at":"2017-08-07T22:17:36Z","pushed_at":"2017-12-08T03:59:36Z","git_url":"git://github.com/catalyst/moodle-tool_s3logs.git","ssh_url":"git@github.com:catalyst/moodle-tool_s3logs.git","clone_url":"https://github.com/catalyst/moodle-tool_s3logs.git","svn_url":"https://github.com/catalyst/moodle-tool_s3logs","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"catalyst:master","ref":"master","sha":"439b93a974e7e394da02a3873611cc3611fba5d6","user":{"login":"catalyst","id":47789,"avatar_url":"https://avatars1.githubusercontent.com/u/47789?v=4","gravatar_id":"","url":"https://api.github.com/users/catalyst","html_url":"https://github.com/catalyst","followers_url":"https://api.github.com/users/catalyst/followers","following_url":"https://api.github.com/users/catalyst/following{/other_user}","gists_url":"https://api.github.com/users/catalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/catalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalyst/subscriptions","organizations_url":"https://api.github.com/users/catalyst/orgs","repos_url":"https://api.github.com/users/catalyst/repos","events_url":"https://api.github.com/users/catalyst/events{/privacy}","received_events_url":"https://api.github.com/users/catalyst/received_events","type":"Organization","site_admin":false},"repo":{"id":99625082,"name":"moodle-tool_s3logs","full_name":"catalyst/moodle-tool_s3logs","owner":{"login":"catalyst","id":47789,"avatar_url":"https://avatars1.githubusercontent.com/u/47789?v=4","gravatar_id":"","url":"https://api.github.com/users/catalyst","html_url":"https://github.com/catalyst","followers_url":"https://api.github.com/users/catalyst/followers","following_url":"https://api.github.com/users/catalyst/following{/other_user}","gists_url":"https://api.github.com/users/catalyst/gists{/gist_id}","starred_url":"https://api.github.com/users/catalyst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catalyst/subscriptions","organizations_url":"https://api.github.com/users/catalyst/orgs","repos_url":"https://api.github.com/users/catalyst/repos","events_url":"https://api.github.com/users/catalyst/events{/privacy}","received_events_url":"https://api.github.com/users/catalyst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/catalyst/moodle-tool_s3logs","description":null,"fork":false,"url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs","forks_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/forks","keys_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/teams","hooks_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/hooks","issue_events_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/events{/number}","events_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/events","assignees_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/assignees{/user}","branches_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/branches{/branch}","tags_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/tags","blobs_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/refs{/sha}","trees_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/statuses/{sha}","languages_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/languages","stargazers_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/stargazers","contributors_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/contributors","subscribers_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/subscribers","subscription_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/subscription","commits_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/commits{/sha}","git_commits_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/git/commits{/sha}","comments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/comments{/number}","issue_comment_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/comments{/number}","contents_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/contents/{+path}","compare_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/merges","archive_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/downloads","issues_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues{/number}","pulls_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls{/number}","milestones_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/milestones{/number}","notifications_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/labels{/name}","releases_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/releases{/id}","deployments_url":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/deployments","created_at":"2017-08-07T22:13:28Z","updated_at":"2017-08-07T22:17:36Z","pushed_at":"2017-12-08T03:59:36Z","git_url":"git://github.com/catalyst/moodle-tool_s3logs.git","ssh_url":"git@github.com:catalyst/moodle-tool_s3logs.git","clone_url":"https://github.com/catalyst/moodle-tool_s3logs.git","svn_url":"https://github.com/catalyst/moodle-tool_s3logs","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1"},"html":{"href":"https://github.com/catalyst/moodle-tool_s3logs/pull/1"},"issue":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/1"},"comments":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/catalyst/moodle-tool_s3logs/statuses/9e0dad38ae4d6f5ba92d7af5898811e6f0c9bf77"}},"author_association":"NONE"}}
{"actor":{"display_login":"mattporritt"}}