{"action":"opened","number":33,"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33","id":62967219,"html_url":"https://github.com/ga-wdi-boston/js-template/pull/33","diff_url":"https://github.com/ga-wdi-boston/js-template/pull/33.diff","patch_url":"https://github.com/ga-wdi-boston/js-template/pull/33.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/33","number":33,"state":"open","locked":false,"title":"Get form data","user":{"login":"gaand","id":10064043,"avatar_url":"https://avatars.githubusercontent.com/u/10064043?v=3","gravatar_id":"","url":"https://api.github.com/users/gaand","html_url":"https://github.com/gaand","followers_url":"https://api.github.com/users/gaand/followers","following_url":"https://api.github.com/users/gaand/following{/other_user}","gists_url":"https://api.github.com/users/gaand/gists{/gist_id}","starred_url":"https://api.github.com/users/gaand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaand/subscriptions","organizations_url":"https://api.github.com/users/gaand/orgs","repos_url":"https://api.github.com/users/gaand/repos","events_url":"https://api.github.com/users/gaand/events{/privacy}","received_events_url":"https://api.github.com/users/gaand/received_events","type":"User","site_admin":false},"body":"This allows consistency between `multipart/form-data` and `application/x-www-form-urlencoded` form submissions, e.g.\r\n\r\n```js\r\nconst myFormApiCreate = (data, success, fail) => {\r\n  $.ajax({\r\n    method: 'POST',\r\n    url: 'http://localhost:3000/forms',\r\n    processData: false,\r\n    data: data,\r\n  }).done(success)\r\n  .fail(fail);\r\n};\r\n\r\n$('#my-form').on('submit', function (e) {\r\n  let formData = getFormData(this);\r\n  myFormApiCreate(formData, (success) => console.log(success), (fail) => console.error(fail));\r\n});\r\n```\r\n","created_at":"2016-03-15T19:57:21Z","updated_at":"2016-03-15T19:57:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/33/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/js-template/statuses/45cc5dbf044ea5efd5613c6fe94ebe47fda7b4de","head":{"label":"ga-wdi-boston:get-form-data","ref":"get-form-data","sha":"45cc5dbf044ea5efd5613c6fe94ebe47fda7b4de","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":43747911,"name":"js-template","full_name":"ga-wdi-boston/js-template","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/js-template","description":null,"fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/js-template","forks_url":"https://api.github.com/repos/ga-wdi-boston/js-template/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/js-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/js-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/js-template/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/js-template/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/js-template/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/js-template/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/js-template/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/js-template/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/js-template/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/js-template/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/js-template/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/js-template/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/js-template/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/js-template/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/js-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/js-template/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/js-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/js-template/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/js-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/js-template/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/js-template/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/js-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/js-template/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/js-template/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/deployments","created_at":"2015-10-06T12:03:35Z","updated_at":"2016-03-14T03:45:08Z","pushed_at":"2016-03-15T17:36:33Z","git_url":"git://github.com/ga-wdi-boston/js-template.git","ssh_url":"git@github.com:ga-wdi-boston/js-template.git","clone_url":"https://github.com/ga-wdi-boston/js-template.git","svn_url":"https://github.com/ga-wdi-boston/js-template","homepage":null,"size":323,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":5,"default_branch":"master"}},"base":{"label":"ga-wdi-boston:master","ref":"master","sha":"21c2334c2b9b120fb1f3173c92bc3ff90b4d0c37","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":43747911,"name":"js-template","full_name":"ga-wdi-boston/js-template","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/js-template","description":null,"fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/js-template","forks_url":"https://api.github.com/repos/ga-wdi-boston/js-template/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/js-template/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/js-template/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/js-template/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/js-template/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/js-template/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/js-template/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/js-template/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/js-template/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/js-template/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/js-template/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/js-template/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/js-template/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/js-template/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/js-template/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/js-template/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/js-template/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/js-template/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/js-template/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/js-template/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/js-template/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/js-template/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/js-template/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/js-template/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/js-template/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/js-template/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/js-template/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/js-template/deployments","created_at":"2015-10-06T12:03:35Z","updated_at":"2016-03-14T03:45:08Z","pushed_at":"2016-03-15T17:36:33Z","git_url":"git://github.com/ga-wdi-boston/js-template.git","ssh_url":"git@github.com:ga-wdi-boston/js-template.git","clone_url":"https://github.com/ga-wdi-boston/js-template.git","svn_url":"https://github.com/ga-wdi-boston/js-template","homepage":null,"size":323,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":9,"forks":9,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33"},"html":{"href":"https://github.com/ga-wdi-boston/js-template/pull/33"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/33"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/js-template/statuses/45cc5dbf044ea5efd5613c6fe94ebe47fda7b4de"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":33,"deletions":0,"changed_files":2}}