{"action":"created","comment":{"url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/comments/189571509","pull_request_review_id":121770944,"id":189571509,"diff_hunk":"@@ -0,0 +1,19 @@\n+#!/usr/bin/env python3\n+import nexmo\n+from pprint import pprint\n+from datetime import datetime, timedelta\n+\n+client = nexmo.Client(\n+    application_id=APPLICATION_ID,\n+    private_key=APPLICATION_PRIVATE_KEY_PATH,\n+)\n+\n+NOW = datetime.utcnow()\n+DATE_END = NOW.replace(microsecond=0).isoformat()+\"Z\"\n+DATE_START = (NOW - timedelta(hours=24, minutes=00)).replace(microsecond=0).isoformat()+\"Z\"\n+\n+params = {\"date_start\": DATE_START, \"date_end\": DATE_END}\n+response = client.get_calls(params)","path":"voice/retrieve-info-for-all-calls.py","position":16,"original_position":16,"commit_id":"154b9bce55c05a67ed882d0241b1e32895a1a81e","original_commit_id":"154b9bce55c05a67ed882d0241b1e32895a1a81e","user":{"login":"judy2k","id":359772,"avatar_url":"https://avatars2.githubusercontent.com/u/359772?v=4","gravatar_id":"","url":"https://api.github.com/users/judy2k","html_url":"https://github.com/judy2k","followers_url":"https://api.github.com/users/judy2k/followers","following_url":"https://api.github.com/users/judy2k/following{/other_user}","gists_url":"https://api.github.com/users/judy2k/gists{/gist_id}","starred_url":"https://api.github.com/users/judy2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/judy2k/subscriptions","organizations_url":"https://api.github.com/users/judy2k/orgs","repos_url":"https://api.github.com/users/judy2k/repos","events_url":"https://api.github.com/users/judy2k/events{/privacy}","received_events_url":"https://api.github.com/users/judy2k/received_events","type":"User","site_admin":false},"body":"These two lines could just be:\r\n```python\r\nresponse = client.get_calls(date_start=DATE_START, date_end=DATE_END)\r\n```\r\n... which would be more consistent with the calling conventions above - but ultimately I'm not bothered too much.","created_at":"2018-05-21T12:12:21Z","updated_at":"2018-05-21T12:13:49Z","html_url":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23#discussion_r189571509","pull_request_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/comments/189571509"},"html":{"href":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23#discussion_r189571509"},"pull_request":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23","id":185158448,"html_url":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23","diff_url":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23.diff","patch_url":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23.patch","issue_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/23","number":23,"state":"open","locked":false,"title":"Add new building blocks.","user":{"login":"tbedford","id":25511700,"avatar_url":"https://avatars2.githubusercontent.com/u/25511700?v=4","gravatar_id":"","url":"https://api.github.com/users/tbedford","html_url":"https://github.com/tbedford","followers_url":"https://api.github.com/users/tbedford/followers","following_url":"https://api.github.com/users/tbedford/following{/other_user}","gists_url":"https://api.github.com/users/tbedford/gists{/gist_id}","starred_url":"https://api.github.com/users/tbedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbedford/subscriptions","organizations_url":"https://api.github.com/users/tbedford/orgs","repos_url":"https://api.github.com/users/tbedford/repos","events_url":"https://api.github.com/users/tbedford/events{/privacy}","received_events_url":"https://api.github.com/users/tbedford/received_events","type":"User","site_admin":false},"body":"This should be the code for the 'connect an inbound call' building block. Hopefully it's the format you require.","created_at":"2018-05-01T10:55:44Z","updated_at":"2018-05-21T12:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddc97f09f9d8ee4a4b99f2e4c4f7fa9862214a87","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23/commits","review_comments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23/comments","review_comment_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/23/comments","statuses_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/statuses/154b9bce55c05a67ed882d0241b1e32895a1a81e","head":{"label":"nexmo-community:tony-contribs","ref":"tony-contribs","sha":"154b9bce55c05a67ed882d0241b1e32895a1a81e","user":{"login":"nexmo-community","id":19708195,"avatar_url":"https://avatars2.githubusercontent.com/u/19708195?v=4","gravatar_id":"","url":"https://api.github.com/users/nexmo-community","html_url":"https://github.com/nexmo-community","followers_url":"https://api.github.com/users/nexmo-community/followers","following_url":"https://api.github.com/users/nexmo-community/following{/other_user}","gists_url":"https://api.github.com/users/nexmo-community/gists{/gist_id}","starred_url":"https://api.github.com/users/nexmo-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexmo-community/subscriptions","organizations_url":"https://api.github.com/users/nexmo-community/orgs","repos_url":"https://api.github.com/users/nexmo-community/repos","events_url":"https://api.github.com/users/nexmo-community/events{/privacy}","received_events_url":"https://api.github.com/users/nexmo-community/received_events","type":"Organization","site_admin":false},"repo":{"id":64964162,"name":"nexmo-python-quickstart","full_name":"nexmo-community/nexmo-python-quickstart","owner":{"login":"nexmo-community","id":19708195,"avatar_url":"https://avatars2.githubusercontent.com/u/19708195?v=4","gravatar_id":"","url":"https://api.github.com/users/nexmo-community","html_url":"https://github.com/nexmo-community","followers_url":"https://api.github.com/users/nexmo-community/followers","following_url":"https://api.github.com/users/nexmo-community/following{/other_user}","gists_url":"https://api.github.com/users/nexmo-community/gists{/gist_id}","starred_url":"https://api.github.com/users/nexmo-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexmo-community/subscriptions","organizations_url":"https://api.github.com/users/nexmo-community/orgs","repos_url":"https://api.github.com/users/nexmo-community/repos","events_url":"https://api.github.com/users/nexmo-community/events{/privacy}","received_events_url":"https://api.github.com/users/nexmo-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexmo-community/nexmo-python-quickstart","description":"Nexmo Quickstart Examples for Python","fork":false,"url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart","forks_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/forks","keys_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/teams","hooks_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/hooks","issue_events_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/events{/number}","events_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/events","assignees_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/assignees{/user}","branches_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/branches{/branch}","tags_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/tags","blobs_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/statuses/{sha}","languages_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/languages","stargazers_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/stargazers","contributors_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/contributors","subscribers_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/subscribers","subscription_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/subscription","commits_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/contents/{+path}","compare_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/merges","archive_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/downloads","issues_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues{/number}","pulls_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls{/number}","milestones_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/milestones{/number}","notifications_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/labels{/name}","releases_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/releases{/id}","deployments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/deployments","created_at":"2016-08-04T20:13:31Z","updated_at":"2018-05-12T00:24:56Z","pushed_at":"2018-05-03T13:42:05Z","git_url":"git://github.com/nexmo-community/nexmo-python-quickstart.git","ssh_url":"git@github.com:nexmo-community/nexmo-python-quickstart.git","clone_url":"https://github.com/nexmo-community/nexmo-python-quickstart.git","svn_url":"https://github.com/nexmo-community/nexmo-python-quickstart","homepage":"","size":37,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"base":{"label":"nexmo-community:master","ref":"master","sha":"71c2ce1b6079bd60dc99cf224086a0441e7c1d3b","user":{"login":"nexmo-community","id":19708195,"avatar_url":"https://avatars2.githubusercontent.com/u/19708195?v=4","gravatar_id":"","url":"https://api.github.com/users/nexmo-community","html_url":"https://github.com/nexmo-community","followers_url":"https://api.github.com/users/nexmo-community/followers","following_url":"https://api.github.com/users/nexmo-community/following{/other_user}","gists_url":"https://api.github.com/users/nexmo-community/gists{/gist_id}","starred_url":"https://api.github.com/users/nexmo-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexmo-community/subscriptions","organizations_url":"https://api.github.com/users/nexmo-community/orgs","repos_url":"https://api.github.com/users/nexmo-community/repos","events_url":"https://api.github.com/users/nexmo-community/events{/privacy}","received_events_url":"https://api.github.com/users/nexmo-community/received_events","type":"Organization","site_admin":false},"repo":{"id":64964162,"name":"nexmo-python-quickstart","full_name":"nexmo-community/nexmo-python-quickstart","owner":{"login":"nexmo-community","id":19708195,"avatar_url":"https://avatars2.githubusercontent.com/u/19708195?v=4","gravatar_id":"","url":"https://api.github.com/users/nexmo-community","html_url":"https://github.com/nexmo-community","followers_url":"https://api.github.com/users/nexmo-community/followers","following_url":"https://api.github.com/users/nexmo-community/following{/other_user}","gists_url":"https://api.github.com/users/nexmo-community/gists{/gist_id}","starred_url":"https://api.github.com/users/nexmo-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nexmo-community/subscriptions","organizations_url":"https://api.github.com/users/nexmo-community/orgs","repos_url":"https://api.github.com/users/nexmo-community/repos","events_url":"https://api.github.com/users/nexmo-community/events{/privacy}","received_events_url":"https://api.github.com/users/nexmo-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nexmo-community/nexmo-python-quickstart","description":"Nexmo Quickstart Examples for Python","fork":false,"url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart","forks_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/forks","keys_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/teams","hooks_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/hooks","issue_events_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/events{/number}","events_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/events","assignees_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/assignees{/user}","branches_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/branches{/branch}","tags_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/tags","blobs_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/refs{/sha}","trees_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/statuses/{sha}","languages_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/languages","stargazers_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/stargazers","contributors_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/contributors","subscribers_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/subscribers","subscription_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/subscription","commits_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/commits{/sha}","git_commits_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/git/commits{/sha}","comments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/comments{/number}","issue_comment_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/comments{/number}","contents_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/contents/{+path}","compare_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/merges","archive_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/downloads","issues_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues{/number}","pulls_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls{/number}","milestones_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/milestones{/number}","notifications_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/labels{/name}","releases_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/releases{/id}","deployments_url":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/deployments","created_at":"2016-08-04T20:13:31Z","updated_at":"2018-05-12T00:24:56Z","pushed_at":"2018-05-03T13:42:05Z","git_url":"git://github.com/nexmo-community/nexmo-python-quickstart.git","ssh_url":"git@github.com:nexmo-community/nexmo-python-quickstart.git","clone_url":"https://github.com/nexmo-community/nexmo-python-quickstart.git","svn_url":"https://github.com/nexmo-community/nexmo-python-quickstart","homepage":"","size":37,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23"},"html":{"href":"https://github.com/nexmo-community/nexmo-python-quickstart/pull/23"},"issue":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/23"},"comments":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/nexmo-community/nexmo-python-quickstart/statuses/154b9bce55c05a67ed882d0241b1e32895a1a81e"}},"author_association":"NONE"}}
{"actor":{"display_login":"judy2k"}}