{"action":"created","comment":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/comments/42897200","id":42897200,"diff_hunk":"@@ -1,13 +1,20 @@\n querystring = require('querystring')\n \n createRequest = (vars, profile) ->\n+\n   vars.apiKey ?= process.env.WEBBULA_API_KEY\n+\n   body =\n     emails: vars.lead.email\n     profile: profile\n \n-  body = querystring.encode(body)\n+  for name, value of body\n+    if value\n+      body[name] = value.toString()\n+    else\n+      delete body[name]","path":"src/common.coffee","position":16,"original_position":16,"commit_id":"deabbb5d21752c9a18dce1af5f16df8189f88e10","original_commit_id":"deabbb5d21752c9a18dce1af5f16df8189f88e10","user":{"login":"ros3bud","id":3402403,"avatar_url":"https://avatars.githubusercontent.com/u/3402403?v=3","gravatar_id":"","url":"https://api.github.com/users/ros3bud","html_url":"https://github.com/ros3bud","followers_url":"https://api.github.com/users/ros3bud/followers","following_url":"https://api.github.com/users/ros3bud/following{/other_user}","gists_url":"https://api.github.com/users/ros3bud/gists{/gist_id}","starred_url":"https://api.github.com/users/ros3bud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros3bud/subscriptions","organizations_url":"https://api.github.com/users/ros3bud/orgs","repos_url":"https://api.github.com/users/ros3bud/repos","events_url":"https://api.github.com/users/ros3bud/events{/privacy}","received_events_url":"https://api.github.com/users/ros3bud/received_events","type":"User","site_admin":false},"body":"My thinking on this was that adding this method here allows us to standardize how this is done regardless of how many elements are there. But I see what you mean - it seems like a lot to do for only 2 elements - seems like the number of elements should always be considered before adding this method.","created_at":"2015-10-23T18:20:27Z","updated_at":"2015-10-23T18:20:27Z","html_url":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25#discussion_r42897200","pull_request_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/comments/42897200"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25#discussion_r42897200"},"pull_request":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25","id":48611048,"html_url":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25","diff_url":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25.diff","patch_url":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25.patch","issue_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/25","number":25,"state":"open","locked":false,"title":"strigify internal object type value","user":{"login":"ros3bud","id":3402403,"avatar_url":"https://avatars.githubusercontent.com/u/3402403?v=3","gravatar_id":"","url":"https://api.github.com/users/ros3bud","html_url":"https://github.com/ros3bud","followers_url":"https://api.github.com/users/ros3bud/followers","following_url":"https://api.github.com/users/ros3bud/following{/other_user}","gists_url":"https://api.github.com/users/ros3bud/gists{/gist_id}","starred_url":"https://api.github.com/users/ros3bud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ros3bud/subscriptions","organizations_url":"https://api.github.com/users/ros3bud/orgs","repos_url":"https://api.github.com/users/ros3bud/repos","events_url":"https://api.github.com/users/ros3bud/events{/privacy}","received_events_url":"https://api.github.com/users/ros3bud/received_events","type":"User","site_admin":false},"body":"Solves #24 \r\n\r\n@cgrayson, LGTY? ","created_at":"2015-10-23T18:06:02Z","updated_at":"2015-10-23T18:20:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0940f15bb5176c895256c3d642b53e0342195e76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25/commits","review_comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25/comments","review_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/25/comments","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/statuses/deabbb5d21752c9a18dce1af5f16df8189f88e10","head":{"label":"activeprospect:issue_24","ref":"issue_24","sha":"deabbb5d21752c9a18dce1af5f16df8189f88e10","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":32954631,"name":"leadconduit-integration-webbula","full_name":"activeprospect/leadconduit-integration-webbula","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-webbula","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/releases{/id}","created_at":"2015-03-26T22:12:18Z","updated_at":"2015-04-08T18:20:02Z","pushed_at":"2015-10-23T18:06:02Z","git_url":"git://github.com/activeprospect/leadconduit-integration-webbula.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-webbula.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-webbula.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-webbula","homepage":null,"size":447,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"activeprospect:master","ref":"master","sha":"d2f17fde36e7ff3b2bb0725763becb0764bf64a2","user":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"repo":{"id":32954631,"name":"leadconduit-integration-webbula","full_name":"activeprospect/leadconduit-integration-webbula","owner":{"login":"activeprospect","id":245554,"avatar_url":"https://avatars.githubusercontent.com/u/245554?v=3","gravatar_id":"","url":"https://api.github.com/users/activeprospect","html_url":"https://github.com/activeprospect","followers_url":"https://api.github.com/users/activeprospect/followers","following_url":"https://api.github.com/users/activeprospect/following{/other_user}","gists_url":"https://api.github.com/users/activeprospect/gists{/gist_id}","starred_url":"https://api.github.com/users/activeprospect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activeprospect/subscriptions","organizations_url":"https://api.github.com/users/activeprospect/orgs","repos_url":"https://api.github.com/users/activeprospect/repos","events_url":"https://api.github.com/users/activeprospect/events{/privacy}","received_events_url":"https://api.github.com/users/activeprospect/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activeprospect/leadconduit-integration-webbula","description":"","fork":false,"url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula","forks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/forks","keys_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/teams","hooks_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/hooks","issue_events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/events{/number}","events_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/events","assignees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/assignees{/user}","branches_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/branches{/branch}","tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/tags","blobs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/refs{/sha}","trees_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/statuses/{sha}","languages_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/languages","stargazers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/stargazers","contributors_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/contributors","subscribers_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/subscribers","subscription_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/subscription","commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/commits{/sha}","git_commits_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/git/commits{/sha}","comments_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/comments{/number}","issue_comment_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/comments{/number}","contents_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/contents/{+path}","compare_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/merges","archive_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/downloads","issues_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues{/number}","pulls_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls{/number}","milestones_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/milestones{/number}","notifications_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/labels{/name}","releases_url":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/releases{/id}","created_at":"2015-03-26T22:12:18Z","updated_at":"2015-04-08T18:20:02Z","pushed_at":"2015-10-23T18:06:02Z","git_url":"git://github.com/activeprospect/leadconduit-integration-webbula.git","ssh_url":"git@github.com:activeprospect/leadconduit-integration-webbula.git","clone_url":"https://github.com/activeprospect/leadconduit-integration-webbula.git","svn_url":"https://github.com/activeprospect/leadconduit-integration-webbula","homepage":null,"size":447,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25"},"html":{"href":"https://github.com/activeprospect/leadconduit-integration-webbula/pull/25"},"issue":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/25"},"comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/activeprospect/leadconduit-integration-webbula/statuses/deabbb5d21752c9a18dce1af5f16df8189f88e10"}}}}