{"action":"created","comment":{"url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/comments/232986187","pull_request_review_id":174299580,"id":232986187,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjk4NjE4Nw==","diff_hunk":"@@ -0,0 +1,16 @@\n+<?php\n+\n+\n+function grabApi ($number)\n+{\n+    while ($number < 151) {\n+        $number = $number + 1;\n+        $curl = curl_init();\n+        curl_setopt($curl, CURLOPT_URL, 'http://pokeapi.salestock.net/api/v2/pokemon/' . $number . '/');\n+        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);","path":"index.php","position":16,"original_position":10,"commit_id":"bc9f9e8aeb7893686bf26c55cc6db1132c273581","original_commit_id":"893a2d3461a51f4989cbd119d60eaa59d6402079","user":{"login":"olivergate","id":42556583,"node_id":"MDQ6VXNlcjQyNTU2NTgz","avatar_url":"https://avatars0.githubusercontent.com/u/42556583?v=4","gravatar_id":"","url":"https://api.github.com/users/olivergate","html_url":"https://github.com/olivergate","followers_url":"https://api.github.com/users/olivergate/followers","following_url":"https://api.github.com/users/olivergate/following{/other_user}","gists_url":"https://api.github.com/users/olivergate/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergate/subscriptions","organizations_url":"https://api.github.com/users/olivergate/orgs","repos_url":"https://api.github.com/users/olivergate/repos","events_url":"https://api.github.com/users/olivergate/events{/privacy}","received_events_url":"https://api.github.com/users/olivergate/received_events","type":"User","site_admin":false},"body":"the setup that isn't affecte by the loop should happen outside the loop","created_at":"2018-11-13T10:49:05Z","updated_at":"2018-11-13T10:50:37Z","html_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1#discussion_r232986187","pull_request_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/comments/232986187"},"html":{"href":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1#discussion_r232986187"},"pull_request":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1","id":230414638,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNDE0NjM4","html_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1","diff_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1.diff","patch_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1.patch","issue_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/1","number":1,"state":"open","locked":false,"title":"Task3 s1 curl request to api","user":{"login":"jaholt","id":39413523,"node_id":"MDQ6VXNlcjM5NDEzNTIz","avatar_url":"https://avatars3.githubusercontent.com/u/39413523?v=4","gravatar_id":"","url":"https://api.github.com/users/jaholt","html_url":"https://github.com/jaholt","followers_url":"https://api.github.com/users/jaholt/followers","following_url":"https://api.github.com/users/jaholt/following{/other_user}","gists_url":"https://api.github.com/users/jaholt/gists{/gist_id}","starred_url":"https://api.github.com/users/jaholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaholt/subscriptions","organizations_url":"https://api.github.com/users/jaholt/orgs","repos_url":"https://api.github.com/users/jaholt/repos","events_url":"https://api.github.com/users/jaholt/events{/privacy}","received_events_url":"https://api.github.com/users/jaholt/received_events","type":"User","site_admin":false},"body":"This retrieves all 151 Pokemon from the API, k thanks","created_at":"2018-11-13T10:07:00Z","updated_at":"2018-11-13T10:50:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"132bc4b447150daea47c479ef014fadd2bc5e5b8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/1/comments","statuses_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/statuses/bc9f9e8aeb7893686bf26c55cc6db1132c273581","head":{"label":"Mayden-Academy:task3_s1_curlRequestToAPI","ref":"task3_s1_curlRequestToAPI","sha":"bc9f9e8aeb7893686bf26c55cc6db1132c273581","user":{"login":"Mayden-Academy","id":23072457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcyNDU3","avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":157214725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcyMTQ3MjU=","name":"pokedex-2018-phbees","full_name":"Mayden-Academy/pokedex-2018-phbees","private":false,"owner":{"login":"Mayden-Academy","id":23072457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcyNDU3","avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees","description":null,"fork":false,"url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees","forks_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/forks","keys_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/teams","hooks_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/hooks","issue_events_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/events{/number}","events_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/events","assignees_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/assignees{/user}","branches_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/branches{/branch}","tags_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/tags","blobs_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/statuses/{sha}","languages_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/languages","stargazers_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/stargazers","contributors_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/contributors","subscribers_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/subscribers","subscription_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/subscription","commits_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/contents/{+path}","compare_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/merges","archive_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/downloads","issues_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues{/number}","pulls_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls{/number}","milestones_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/milestones{/number}","notifications_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/labels{/name}","releases_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/releases{/id}","deployments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/deployments","created_at":"2018-11-12T13:04:33Z","updated_at":"2018-11-12T13:09:55Z","pushed_at":"2018-11-13T10:49:15Z","git_url":"git://github.com/Mayden-Academy/pokedex-2018-phbees.git","ssh_url":"git@github.com:Mayden-Academy/pokedex-2018-phbees.git","clone_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees.git","svn_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Mayden-Academy:story1_dataScrape","ref":"story1_dataScrape","sha":"b3bec30c22e49ab7058a6d31056f2fad3ef86515","user":{"login":"Mayden-Academy","id":23072457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcyNDU3","avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"repo":{"id":157214725,"node_id":"MDEwOlJlcG9zaXRvcnkxNTcyMTQ3MjU=","name":"pokedex-2018-phbees","full_name":"Mayden-Academy/pokedex-2018-phbees","private":false,"owner":{"login":"Mayden-Academy","id":23072457,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDcyNDU3","avatar_url":"https://avatars2.githubusercontent.com/u/23072457?v=4","gravatar_id":"","url":"https://api.github.com/users/Mayden-Academy","html_url":"https://github.com/Mayden-Academy","followers_url":"https://api.github.com/users/Mayden-Academy/followers","following_url":"https://api.github.com/users/Mayden-Academy/following{/other_user}","gists_url":"https://api.github.com/users/Mayden-Academy/gists{/gist_id}","starred_url":"https://api.github.com/users/Mayden-Academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mayden-Academy/subscriptions","organizations_url":"https://api.github.com/users/Mayden-Academy/orgs","repos_url":"https://api.github.com/users/Mayden-Academy/repos","events_url":"https://api.github.com/users/Mayden-Academy/events{/privacy}","received_events_url":"https://api.github.com/users/Mayden-Academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees","description":null,"fork":false,"url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees","forks_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/forks","keys_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/teams","hooks_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/hooks","issue_events_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/events{/number}","events_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/events","assignees_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/assignees{/user}","branches_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/branches{/branch}","tags_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/tags","blobs_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/statuses/{sha}","languages_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/languages","stargazers_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/stargazers","contributors_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/contributors","subscribers_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/subscribers","subscription_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/subscription","commits_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/contents/{+path}","compare_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/merges","archive_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/downloads","issues_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues{/number}","pulls_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls{/number}","milestones_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/milestones{/number}","notifications_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/labels{/name}","releases_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/releases{/id}","deployments_url":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/deployments","created_at":"2018-11-12T13:04:33Z","updated_at":"2018-11-12T13:09:55Z","pushed_at":"2018-11-13T10:49:15Z","git_url":"git://github.com/Mayden-Academy/pokedex-2018-phbees.git","ssh_url":"git@github.com:Mayden-Academy/pokedex-2018-phbees.git","clone_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees.git","svn_url":"https://github.com/Mayden-Academy/pokedex-2018-phbees","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1"},"html":{"href":"https://github.com/Mayden-Academy/pokedex-2018-phbees/pull/1"},"issue":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/1"},"comments":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Mayden-Academy/pokedex-2018-phbees/statuses/bc9f9e8aeb7893686bf26c55cc6db1132c273581"}},"author_association":"NONE"}}
{"actor":{"display_login":"olivergate"}}