{"action":"created","comment":{"url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/comments/80997026","pull_request_review_id":2010439,"id":80997026,"diff_hunk":"@@ -1,12 +1,12 @@\n-from twilio.rest import TwilioRestClient\n+from twilio.rest import Client\n from os import environ as ENV\n \n \n def call_agent(agent_id, callback_url):\n     account_sid = ENV['TWILIO_ACCOUNT_SID']\n     auth_token = ENV['TWILIO_AUTH_TOKEN']\n     my_number = ENV['TWILIO_NUMBER']\n-    client = TwilioRestClient(account_sid, auth_token)\n+    client = Client(account_sid, auth_token)\n     call = client.calls.create(to='client:' + agent_id, from_=my_number,","path":"warm_transfer_flask/call.py","position":12,"original_position":12,"commit_id":"ac2cf1233bb547ec63e268bc1db466308141dc32","original_commit_id":"ac2cf1233bb547ec63e268bc1db466308141dc32","user":{"login":"mosampaio","id":510794,"avatar_url":"https://avatars.githubusercontent.com/u/510794?v=3","gravatar_id":"","url":"https://api.github.com/users/mosampaio","html_url":"https://github.com/mosampaio","followers_url":"https://api.github.com/users/mosampaio/followers","following_url":"https://api.github.com/users/mosampaio/following{/other_user}","gists_url":"https://api.github.com/users/mosampaio/gists{/gist_id}","starred_url":"https://api.github.com/users/mosampaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosampaio/subscriptions","organizations_url":"https://api.github.com/users/mosampaio/orgs","repos_url":"https://api.github.com/users/mosampaio/repos","events_url":"https://api.github.com/users/mosampaio/events{/privacy}","received_events_url":"https://api.github.com/users/mosampaio/received_events","type":"User","site_admin":false},"body":"@acamino I totally agree with you, but notice that in this specific case, [both `to` and `from_` are required parameters](https://github.com/twilio/twilio-python/blob/next-gen/twilio/rest/api/v2010/account/call/__init__.py#L45).\r\n\r\nIf we change, it would be something like: \r\n```python\r\ncall = client.calls.create('client:' + agent_id, my_number,\r\n```\r\n\r\nShould I really proceed with this change anyway?\r\n","created_at":"2016-09-28T19:21:56Z","updated_at":"2016-09-28T19:21:56Z","html_url":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3#discussion_r80997026","pull_request_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/comments/80997026"},"html":{"href":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3#discussion_r80997026"},"pull_request":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3","id":86821098,"html_url":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3","diff_url":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3.diff","patch_url":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3.patch","issue_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/3","number":3,"state":"open","locked":false,"title":"Bumps twilio sdk version to 6.0.0rc12","user":{"login":"mosampaio","id":510794,"avatar_url":"https://avatars.githubusercontent.com/u/510794?v=3","gravatar_id":"","url":"https://api.github.com/users/mosampaio","html_url":"https://github.com/mosampaio","followers_url":"https://api.github.com/users/mosampaio/followers","following_url":"https://api.github.com/users/mosampaio/following{/other_user}","gists_url":"https://api.github.com/users/mosampaio/gists{/gist_id}","starred_url":"https://api.github.com/users/mosampaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosampaio/subscriptions","organizations_url":"https://api.github.com/users/mosampaio/orgs","repos_url":"https://api.github.com/users/mosampaio/repos","events_url":"https://api.github.com/users/mosampaio/events{/privacy}","received_events_url":"https://api.github.com/users/mosampaio/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-26T21:20:27Z","updated_at":"2016-09-28T19:21:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a484f8eb57122737fa1d632e5009baad01ca9d9d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/3/comments","statuses_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/statuses/ac2cf1233bb547ec63e268bc1db466308141dc32","head":{"label":"TwilioDevEd:next-gen","ref":"next-gen","sha":"ac2cf1233bb547ec63e268bc1db466308141dc32","user":{"login":"TwilioDevEd","id":8114879,"avatar_url":"https://avatars.githubusercontent.com/u/8114879?v=3","gravatar_id":"","url":"https://api.github.com/users/TwilioDevEd","html_url":"https://github.com/TwilioDevEd","followers_url":"https://api.github.com/users/TwilioDevEd/followers","following_url":"https://api.github.com/users/TwilioDevEd/following{/other_user}","gists_url":"https://api.github.com/users/TwilioDevEd/gists{/gist_id}","starred_url":"https://api.github.com/users/TwilioDevEd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwilioDevEd/subscriptions","organizations_url":"https://api.github.com/users/TwilioDevEd/orgs","repos_url":"https://api.github.com/users/TwilioDevEd/repos","events_url":"https://api.github.com/users/TwilioDevEd/events{/privacy}","received_events_url":"https://api.github.com/users/TwilioDevEd/received_events","type":"Organization","site_admin":false},"repo":{"id":57324623,"name":"warm-transfer-flask","full_name":"TwilioDevEd/warm-transfer-flask","owner":{"login":"TwilioDevEd","id":8114879,"avatar_url":"https://avatars.githubusercontent.com/u/8114879?v=3","gravatar_id":"","url":"https://api.github.com/users/TwilioDevEd","html_url":"https://github.com/TwilioDevEd","followers_url":"https://api.github.com/users/TwilioDevEd/followers","following_url":"https://api.github.com/users/TwilioDevEd/following{/other_user}","gists_url":"https://api.github.com/users/TwilioDevEd/gists{/gist_id}","starred_url":"https://api.github.com/users/TwilioDevEd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwilioDevEd/subscriptions","organizations_url":"https://api.github.com/users/TwilioDevEd/orgs","repos_url":"https://api.github.com/users/TwilioDevEd/repos","events_url":"https://api.github.com/users/TwilioDevEd/events{/privacy}","received_events_url":"https://api.github.com/users/TwilioDevEd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TwilioDevEd/warm-transfer-flask","description":"Warm transfer implementation with Flask and Twilio","fork":false,"url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask","forks_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/forks","keys_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/teams","hooks_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/hooks","issue_events_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/events{/number}","events_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/events","assignees_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/assignees{/user}","branches_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/branches{/branch}","tags_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/tags","blobs_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/languages","stargazers_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/stargazers","contributors_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/contributors","subscribers_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/subscribers","subscription_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/subscription","commits_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/contents/{+path}","compare_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/merges","archive_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/downloads","issues_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues{/number}","pulls_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/labels{/name}","releases_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/releases{/id}","deployments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/deployments","created_at":"2016-04-28T18:25:03Z","updated_at":"2016-05-20T19:12:05Z","pushed_at":"2016-09-26T21:20:43Z","git_url":"git://github.com/TwilioDevEd/warm-transfer-flask.git","ssh_url":"git@github.com:TwilioDevEd/warm-transfer-flask.git","clone_url":"https://github.com/TwilioDevEd/warm-transfer-flask.git","svn_url":"https://github.com/TwilioDevEd/warm-transfer-flask","homepage":"https://www.twilio.com/docs/tutorials/walkthrough/warm-transfer/python/flask","size":1326,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"TwilioDevEd:master","ref":"master","sha":"6004bee3562daf6bafc446ab895b745b13a78a29","user":{"login":"TwilioDevEd","id":8114879,"avatar_url":"https://avatars.githubusercontent.com/u/8114879?v=3","gravatar_id":"","url":"https://api.github.com/users/TwilioDevEd","html_url":"https://github.com/TwilioDevEd","followers_url":"https://api.github.com/users/TwilioDevEd/followers","following_url":"https://api.github.com/users/TwilioDevEd/following{/other_user}","gists_url":"https://api.github.com/users/TwilioDevEd/gists{/gist_id}","starred_url":"https://api.github.com/users/TwilioDevEd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwilioDevEd/subscriptions","organizations_url":"https://api.github.com/users/TwilioDevEd/orgs","repos_url":"https://api.github.com/users/TwilioDevEd/repos","events_url":"https://api.github.com/users/TwilioDevEd/events{/privacy}","received_events_url":"https://api.github.com/users/TwilioDevEd/received_events","type":"Organization","site_admin":false},"repo":{"id":57324623,"name":"warm-transfer-flask","full_name":"TwilioDevEd/warm-transfer-flask","owner":{"login":"TwilioDevEd","id":8114879,"avatar_url":"https://avatars.githubusercontent.com/u/8114879?v=3","gravatar_id":"","url":"https://api.github.com/users/TwilioDevEd","html_url":"https://github.com/TwilioDevEd","followers_url":"https://api.github.com/users/TwilioDevEd/followers","following_url":"https://api.github.com/users/TwilioDevEd/following{/other_user}","gists_url":"https://api.github.com/users/TwilioDevEd/gists{/gist_id}","starred_url":"https://api.github.com/users/TwilioDevEd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwilioDevEd/subscriptions","organizations_url":"https://api.github.com/users/TwilioDevEd/orgs","repos_url":"https://api.github.com/users/TwilioDevEd/repos","events_url":"https://api.github.com/users/TwilioDevEd/events{/privacy}","received_events_url":"https://api.github.com/users/TwilioDevEd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TwilioDevEd/warm-transfer-flask","description":"Warm transfer implementation with Flask and Twilio","fork":false,"url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask","forks_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/forks","keys_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/teams","hooks_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/hooks","issue_events_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/events{/number}","events_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/events","assignees_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/assignees{/user}","branches_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/branches{/branch}","tags_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/tags","blobs_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/refs{/sha}","trees_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/statuses/{sha}","languages_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/languages","stargazers_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/stargazers","contributors_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/contributors","subscribers_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/subscribers","subscription_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/subscription","commits_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/commits{/sha}","git_commits_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/git/commits{/sha}","comments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/comments{/number}","issue_comment_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/comments{/number}","contents_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/contents/{+path}","compare_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/merges","archive_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/downloads","issues_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues{/number}","pulls_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls{/number}","milestones_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/milestones{/number}","notifications_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/labels{/name}","releases_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/releases{/id}","deployments_url":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/deployments","created_at":"2016-04-28T18:25:03Z","updated_at":"2016-05-20T19:12:05Z","pushed_at":"2016-09-26T21:20:43Z","git_url":"git://github.com/TwilioDevEd/warm-transfer-flask.git","ssh_url":"git@github.com:TwilioDevEd/warm-transfer-flask.git","clone_url":"https://github.com/TwilioDevEd/warm-transfer-flask.git","svn_url":"https://github.com/TwilioDevEd/warm-transfer-flask","homepage":"https://www.twilio.com/docs/tutorials/walkthrough/warm-transfer/python/flask","size":1326,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3"},"html":{"href":"https://github.com/TwilioDevEd/warm-transfer-flask/pull/3"},"issue":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/3"},"comments":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TwilioDevEd/warm-transfer-flask/statuses/ac2cf1233bb547ec63e268bc1db466308141dc32"}}}}
{"actor":{"display_login":"mosampaio"}}