{"action":"created","comment":{"url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/comments/57345042","id":57345042,"diff_hunk":"@@ -1,5 +1,66 @@\n var data = require(\"./products.json\")\n \n-// Write your solutions below\n+var i;\n \n-console.log(data[\"items\"]);\n\\ No newline at end of file\n+var items = data['items'];\n+// var title = data['items'][0].product.title;\n+// var brand = data['items'][0].product.brand;\n+//these exist but I can't figure out how to make them accept [i] :(\n+\n+//#1\n+\n+// var counter = 0;\n+\n+// for(var i = 0; i < items.length; i++) {\n+// \tif (items[i].kind === 'shopping#product') {\n+// \t\tcounter++;\n+// \t}\n+// }\n+\n+// console.log(counter);\n+\n+//Where else is this count information stored in the search results? -> currentItemCount \n+\n+\n+//#2\n+\n+// for(var i = 0; i < items.length; i++) {\n+//     if (items[i].product.inventories[0].availability === \"backorder\") \n+//       console.log(items[i].product.title);\n+//   }\n+","path":"google_shopping.js","position":34,"original_position":34,"commit_id":"18d60d97359487ba2fa57386216e1cad8960d767","original_commit_id":"18d60d97359487ba2fa57386216e1cad8960d767","user":{"login":"srobertson421","id":2695134,"avatar_url":"https://avatars.githubusercontent.com/u/2695134?v=3","gravatar_id":"","url":"https://api.github.com/users/srobertson421","html_url":"https://github.com/srobertson421","followers_url":"https://api.github.com/users/srobertson421/followers","following_url":"https://api.github.com/users/srobertson421/following{/other_user}","gists_url":"https://api.github.com/users/srobertson421/gists{/gist_id}","starred_url":"https://api.github.com/users/srobertson421/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srobertson421/subscriptions","organizations_url":"https://api.github.com/users/srobertson421/orgs","repos_url":"https://api.github.com/users/srobertson421/repos","events_url":"https://api.github.com/users/srobertson421/events{/privacy}","received_events_url":"https://api.github.com/users/srobertson421/received_events","type":"User","site_admin":false},"body":"Missing final closing curly brace for the For loop. Great job on the questions though! Keep it up!","created_at":"2016-03-24T16:29:50Z","updated_at":"2016-03-24T16:29:50Z","html_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28#discussion_r57345042","pull_request_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/comments/57345042"},"html":{"href":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28#discussion_r57345042"},"pull_request":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28","id":64049709,"html_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28","diff_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28.diff","patch_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28.patch","issue_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/28","number":28,"state":"open","locked":false,"title":"Bortree Google Shopping JS","user":{"login":"brytree","id":16676999,"avatar_url":"https://avatars.githubusercontent.com/u/16676999?v=3","gravatar_id":"","url":"https://api.github.com/users/brytree","html_url":"https://github.com/brytree","followers_url":"https://api.github.com/users/brytree/followers","following_url":"https://api.github.com/users/brytree/following{/other_user}","gists_url":"https://api.github.com/users/brytree/gists{/gist_id}","starred_url":"https://api.github.com/users/brytree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brytree/subscriptions","organizations_url":"https://api.github.com/users/brytree/orgs","repos_url":"https://api.github.com/users/brytree/repos","events_url":"https://api.github.com/users/brytree/events{/privacy}","received_events_url":"https://api.github.com/users/brytree/received_events","type":"User","site_admin":false},"body":"Was working on getting the long console logs ( var title = data['items'][0].product.title; var brand = data['items'][0].product.brand;) shorter - didn't quite achieve that (yet). \r\n\r\nThanks!","created_at":"2016-03-24T15:21:34Z","updated_at":"2016-03-24T16:29:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"421c7eed496fccbeca52890adcabad9ce2e4eac2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28/commits","review_comments_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28/comments","review_comment_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/28/comments","statuses_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/statuses/18d60d97359487ba2fa57386216e1cad8960d767","head":{"label":"brytree:master","ref":"master","sha":"18d60d97359487ba2fa57386216e1cad8960d767","user":{"login":"brytree","id":16676999,"avatar_url":"https://avatars.githubusercontent.com/u/16676999?v=3","gravatar_id":"","url":"https://api.github.com/users/brytree","html_url":"https://github.com/brytree","followers_url":"https://api.github.com/users/brytree/followers","following_url":"https://api.github.com/users/brytree/following{/other_user}","gists_url":"https://api.github.com/users/brytree/gists{/gist_id}","starred_url":"https://api.github.com/users/brytree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brytree/subscriptions","organizations_url":"https://api.github.com/users/brytree/orgs","repos_url":"https://api.github.com/users/brytree/repos","events_url":"https://api.github.com/users/brytree/events{/privacy}","received_events_url":"https://api.github.com/users/brytree/received_events","type":"User","site_admin":false},"repo":{"id":54598903,"name":"google-shopping-conditionals-loops","full_name":"brytree/google-shopping-conditionals-loops","owner":{"login":"brytree","id":16676999,"avatar_url":"https://avatars.githubusercontent.com/u/16676999?v=3","gravatar_id":"","url":"https://api.github.com/users/brytree","html_url":"https://github.com/brytree","followers_url":"https://api.github.com/users/brytree/followers","following_url":"https://api.github.com/users/brytree/following{/other_user}","gists_url":"https://api.github.com/users/brytree/gists{/gist_id}","starred_url":"https://api.github.com/users/brytree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brytree/subscriptions","organizations_url":"https://api.github.com/users/brytree/orgs","repos_url":"https://api.github.com/users/brytree/repos","events_url":"https://api.github.com/users/brytree/events{/privacy}","received_events_url":"https://api.github.com/users/brytree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brytree/google-shopping-conditionals-loops","description":"[javascript]","fork":true,"url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops","forks_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/forks","keys_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/teams","hooks_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/hooks","issue_events_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/issues/events{/number}","events_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/events","assignees_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/assignees{/user}","branches_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/branches{/branch}","tags_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/tags","blobs_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/git/refs{/sha}","trees_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/statuses/{sha}","languages_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/languages","stargazers_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/stargazers","contributors_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/contributors","subscribers_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/subscribers","subscription_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/subscription","commits_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/commits{/sha}","git_commits_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/git/commits{/sha}","comments_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/comments{/number}","issue_comment_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/issues/comments{/number}","contents_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/contents/{+path}","compare_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/merges","archive_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/downloads","issues_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/issues{/number}","pulls_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/pulls{/number}","milestones_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/milestones{/number}","notifications_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/labels{/name}","releases_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/releases{/id}","deployments_url":"https://api.github.com/repos/brytree/google-shopping-conditionals-loops/deployments","created_at":"2016-03-23T23:01:10Z","updated_at":"2016-03-23T23:01:11Z","pushed_at":"2016-03-24T03:06:44Z","git_url":"git://github.com/brytree/google-shopping-conditionals-loops.git","ssh_url":"git@github.com:brytree/google-shopping-conditionals-loops.git","clone_url":"https://github.com/brytree/google-shopping-conditionals-loops.git","svn_url":"https://github.com/brytree/google-shopping-conditionals-loops","homepage":"","size":20,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"WDI-SEA:master","ref":"master","sha":"99bbce2623dee61547e269fc18fdc39fd3fbc671","user":{"login":"WDI-SEA","id":16675968,"avatar_url":"https://avatars.githubusercontent.com/u/16675968?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-SEA","html_url":"https://github.com/WDI-SEA","followers_url":"https://api.github.com/users/WDI-SEA/followers","following_url":"https://api.github.com/users/WDI-SEA/following{/other_user}","gists_url":"https://api.github.com/users/WDI-SEA/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-SEA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-SEA/subscriptions","organizations_url":"https://api.github.com/users/WDI-SEA/orgs","repos_url":"https://api.github.com/users/WDI-SEA/repos","events_url":"https://api.github.com/users/WDI-SEA/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-SEA/received_events","type":"Organization","site_admin":false},"repo":{"id":49671195,"name":"google-shopping-conditionals-loops","full_name":"WDI-SEA/google-shopping-conditionals-loops","owner":{"login":"WDI-SEA","id":16675968,"avatar_url":"https://avatars.githubusercontent.com/u/16675968?v=3","gravatar_id":"","url":"https://api.github.com/users/WDI-SEA","html_url":"https://github.com/WDI-SEA","followers_url":"https://api.github.com/users/WDI-SEA/followers","following_url":"https://api.github.com/users/WDI-SEA/following{/other_user}","gists_url":"https://api.github.com/users/WDI-SEA/gists{/gist_id}","starred_url":"https://api.github.com/users/WDI-SEA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WDI-SEA/subscriptions","organizations_url":"https://api.github.com/users/WDI-SEA/orgs","repos_url":"https://api.github.com/users/WDI-SEA/repos","events_url":"https://api.github.com/users/WDI-SEA/events{/privacy}","received_events_url":"https://api.github.com/users/WDI-SEA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops","description":"[javascript]","fork":false,"url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops","forks_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/forks","keys_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/teams","hooks_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/hooks","issue_events_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/events{/number}","events_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/events","assignees_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/assignees{/user}","branches_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/branches{/branch}","tags_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/tags","blobs_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/git/refs{/sha}","trees_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/statuses/{sha}","languages_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/languages","stargazers_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/stargazers","contributors_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/contributors","subscribers_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/subscribers","subscription_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/subscription","commits_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/commits{/sha}","git_commits_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/git/commits{/sha}","comments_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/comments{/number}","issue_comment_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/comments{/number}","contents_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/contents/{+path}","compare_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/merges","archive_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/downloads","issues_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues{/number}","pulls_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls{/number}","milestones_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/milestones{/number}","notifications_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/labels{/name}","releases_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/releases{/id}","deployments_url":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/deployments","created_at":"2016-01-14T19:51:39Z","updated_at":"2016-03-18T04:38:58Z","pushed_at":"2016-03-24T16:27:52Z","git_url":"git://github.com/WDI-SEA/google-shopping-conditionals-loops.git","ssh_url":"git@github.com:WDI-SEA/google-shopping-conditionals-loops.git","clone_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops.git","svn_url":"https://github.com/WDI-SEA/google-shopping-conditionals-loops","homepage":"","size":13,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":14,"forks":35,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28"},"html":{"href":"https://github.com/WDI-SEA/google-shopping-conditionals-loops/pull/28"},"issue":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/28"},"comments":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/WDI-SEA/google-shopping-conditionals-loops/statuses/18d60d97359487ba2fa57386216e1cad8960d767"}}}}