{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1","id":74683553,"html_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods/pull/1","diff_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods/pull/1.diff","patch_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods/pull/1.patch","issue_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/1","number":1,"state":"open","locked":false,"title":"Function to look up ASIN from UPC","user":{"login":"karawoo","id":4452678,"avatar_url":"https://avatars.githubusercontent.com/u/4452678?v=3","gravatar_id":"","url":"https://api.github.com/users/karawoo","html_url":"https://github.com/karawoo","followers_url":"https://api.github.com/users/karawoo/followers","following_url":"https://api.github.com/users/karawoo/following{/other_user}","gists_url":"https://api.github.com/users/karawoo/gists{/gist_id}","starred_url":"https://api.github.com/users/karawoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karawoo/subscriptions","organizations_url":"https://api.github.com/users/karawoo/orgs","repos_url":"https://api.github.com/users/karawoo/repos","events_url":"https://api.github.com/users/karawoo/events{/privacy}","received_events_url":"https://api.github.com/users/karawoo/received_events","type":"User","site_admin":false},"body":"This function takes a UPC code as a string, strips any non-numeric characters (like dashes), and queries [UPCtoASIN.com](http://upctoasin.com/) to retrieve the ASIN. If no ASIN can be found, the UPCtoASIN API returns `UPCNOTFOUND`. The function has a 1-second sleep built in because the UPCtoASIN API is rate limited.","created_at":"2016-06-21T20:54:04Z","updated_at":"2016-06-21T20:54:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a53d292fa47e8b98f4af12fc909337f50162167","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1/commits","review_comments_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1/comments","review_comment_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/1/comments","statuses_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/statuses/865c755e8335e965abf8a2bd8b89d35e1badf98f","head":{"label":"karawoo:upc-to-asin","ref":"upc-to-asin","sha":"865c755e8335e965abf8a2bd8b89d35e1badf98f","user":{"login":"karawoo","id":4452678,"avatar_url":"https://avatars.githubusercontent.com/u/4452678?v=3","gravatar_id":"","url":"https://api.github.com/users/karawoo","html_url":"https://github.com/karawoo","followers_url":"https://api.github.com/users/karawoo/followers","following_url":"https://api.github.com/users/karawoo/following{/other_user}","gists_url":"https://api.github.com/users/karawoo/gists{/gist_id}","starred_url":"https://api.github.com/users/karawoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karawoo/subscriptions","organizations_url":"https://api.github.com/users/karawoo/orgs","repos_url":"https://api.github.com/users/karawoo/repos","events_url":"https://api.github.com/users/karawoo/events{/privacy}","received_events_url":"https://api.github.com/users/karawoo/received_events","type":"User","site_admin":false},"repo":{"id":61652889,"name":"DSSG2016-UnsafeFoods","full_name":"karawoo/DSSG2016-UnsafeFoods","owner":{"login":"karawoo","id":4452678,"avatar_url":"https://avatars.githubusercontent.com/u/4452678?v=3","gravatar_id":"","url":"https://api.github.com/users/karawoo","html_url":"https://github.com/karawoo","followers_url":"https://api.github.com/users/karawoo/followers","following_url":"https://api.github.com/users/karawoo/following{/other_user}","gists_url":"https://api.github.com/users/karawoo/gists{/gist_id}","starred_url":"https://api.github.com/users/karawoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karawoo/subscriptions","organizations_url":"https://api.github.com/users/karawoo/orgs","repos_url":"https://api.github.com/users/karawoo/repos","events_url":"https://api.github.com/users/karawoo/events{/privacy}","received_events_url":"https://api.github.com/users/karawoo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karawoo/DSSG2016-UnsafeFoods","description":"","fork":true,"url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods","forks_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/forks","keys_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/teams","hooks_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/hooks","issue_events_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/issues/events{/number}","events_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/events","assignees_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/assignees{/user}","branches_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/branches{/branch}","tags_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/tags","blobs_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/git/refs{/sha}","trees_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/statuses/{sha}","languages_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/languages","stargazers_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/stargazers","contributors_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/contributors","subscribers_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/subscribers","subscription_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/subscription","commits_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/commits{/sha}","git_commits_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/git/commits{/sha}","comments_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/comments{/number}","issue_comment_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/issues/comments{/number}","contents_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/contents/{+path}","compare_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/merges","archive_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/downloads","issues_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/issues{/number}","pulls_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/pulls{/number}","milestones_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/milestones{/number}","notifications_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/labels{/name}","releases_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/releases{/id}","deployments_url":"https://api.github.com/repos/karawoo/DSSG2016-UnsafeFoods/deployments","created_at":"2016-06-21T17:19:54Z","updated_at":"2016-06-21T17:00:10Z","pushed_at":"2016-06-21T20:49:57Z","git_url":"git://github.com/karawoo/DSSG2016-UnsafeFoods.git","ssh_url":"git@github.com:karawoo/DSSG2016-UnsafeFoods.git","clone_url":"https://github.com/karawoo/DSSG2016-UnsafeFoods.git","svn_url":"https://github.com/karawoo/DSSG2016-UnsafeFoods","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"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":"uwescience:master","ref":"master","sha":"bc37c82e267b19a14dffa690f9c69ce8336531c4","user":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"repo":{"id":61651617,"name":"DSSG2016-UnsafeFoods","full_name":"uwescience/DSSG2016-UnsafeFoods","owner":{"login":"uwescience","id":2243113,"avatar_url":"https://avatars.githubusercontent.com/u/2243113?v=3","gravatar_id":"","url":"https://api.github.com/users/uwescience","html_url":"https://github.com/uwescience","followers_url":"https://api.github.com/users/uwescience/followers","following_url":"https://api.github.com/users/uwescience/following{/other_user}","gists_url":"https://api.github.com/users/uwescience/gists{/gist_id}","starred_url":"https://api.github.com/users/uwescience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uwescience/subscriptions","organizations_url":"https://api.github.com/users/uwescience/orgs","repos_url":"https://api.github.com/users/uwescience/repos","events_url":"https://api.github.com/users/uwescience/events{/privacy}","received_events_url":"https://api.github.com/users/uwescience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods","description":"","fork":false,"url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods","forks_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/forks","keys_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/teams","hooks_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/hooks","issue_events_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/events{/number}","events_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/events","assignees_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/assignees{/user}","branches_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/branches{/branch}","tags_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/tags","blobs_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/git/refs{/sha}","trees_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/statuses/{sha}","languages_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/languages","stargazers_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/stargazers","contributors_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/contributors","subscribers_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/subscribers","subscription_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/subscription","commits_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/commits{/sha}","git_commits_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/git/commits{/sha}","comments_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/comments{/number}","issue_comment_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/comments{/number}","contents_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/contents/{+path}","compare_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/merges","archive_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/downloads","issues_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues{/number}","pulls_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls{/number}","milestones_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/milestones{/number}","notifications_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/labels{/name}","releases_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/releases{/id}","deployments_url":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/deployments","created_at":"2016-06-21T17:00:10Z","updated_at":"2016-06-21T17:00:10Z","pushed_at":"2016-06-21T20:54:04Z","git_url":"git://github.com/uwescience/DSSG2016-UnsafeFoods.git","ssh_url":"git@github.com:uwescience/DSSG2016-UnsafeFoods.git","clone_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods.git","svn_url":"https://github.com/uwescience/DSSG2016-UnsafeFoods","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1"},"html":{"href":"https://github.com/uwescience/DSSG2016-UnsafeFoods/pull/1"},"issue":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/1"},"comments":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/uwescience/DSSG2016-UnsafeFoods/statuses/865c755e8335e965abf8a2bd8b89d35e1badf98f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":39,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"karawoo"}}