{"action":"opened","number":12,"pull_request":{"url":"https://api.github.com/repos/njern/gonexmo/pulls/12","id":50602784,"html_url":"https://github.com/njern/gonexmo/pull/12","diff_url":"https://github.com/njern/gonexmo/pull/12.diff","patch_url":"https://github.com/njern/gonexmo/pull/12.patch","issue_url":"https://api.github.com/repos/njern/gonexmo/issues/12","number":12,"state":"open","locked":false,"title":"Update account.go","user":{"login":"silviucm","id":6261881,"avatar_url":"https://avatars.githubusercontent.com/u/6261881?v=3","gravatar_id":"","url":"https://api.github.com/users/silviucm","html_url":"https://github.com/silviucm","followers_url":"https://api.github.com/users/silviucm/followers","following_url":"https://api.github.com/users/silviucm/following{/other_user}","gists_url":"https://api.github.com/users/silviucm/gists{/gist_id}","starred_url":"https://api.github.com/users/silviucm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviucm/subscriptions","organizations_url":"https://api.github.com/users/silviucm/orgs","repos_url":"https://api.github.com/users/silviucm/repos","events_url":"https://api.github.com/users/silviucm/events{/privacy}","received_events_url":"https://api.github.com/users/silviucm/received_events","type":"User","site_admin":false},"body":"This change adds a few more error checking, and also attempts to close the response body only if not nil. \r\nThere were a few instances, especially an awkward circumstance, where the development laptop went into sleep mode then, then, when it went back to normal operation, the dns resolver was not operational for a few seconds.\r\nThis triggered a panic because the error (unable to resolve the nexmo api hostname) had not been previously captured.","created_at":"2015-11-13T04:12:34Z","updated_at":"2015-11-13T04:12:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54f6131c66eeab4086972888db57f34ec2df1853","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/njern/gonexmo/pulls/12/commits","review_comments_url":"https://api.github.com/repos/njern/gonexmo/pulls/12/comments","review_comment_url":"https://api.github.com/repos/njern/gonexmo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/njern/gonexmo/issues/12/comments","statuses_url":"https://api.github.com/repos/njern/gonexmo/statuses/d2299ff923a91848f62199fc85f9fa82e4d11240","head":{"label":"silviucm:patch-1","ref":"patch-1","sha":"d2299ff923a91848f62199fc85f9fa82e4d11240","user":{"login":"silviucm","id":6261881,"avatar_url":"https://avatars.githubusercontent.com/u/6261881?v=3","gravatar_id":"","url":"https://api.github.com/users/silviucm","html_url":"https://github.com/silviucm","followers_url":"https://api.github.com/users/silviucm/followers","following_url":"https://api.github.com/users/silviucm/following{/other_user}","gists_url":"https://api.github.com/users/silviucm/gists{/gist_id}","starred_url":"https://api.github.com/users/silviucm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviucm/subscriptions","organizations_url":"https://api.github.com/users/silviucm/orgs","repos_url":"https://api.github.com/users/silviucm/repos","events_url":"https://api.github.com/users/silviucm/events{/privacy}","received_events_url":"https://api.github.com/users/silviucm/received_events","type":"User","site_admin":false},"repo":{"id":46099230,"name":"gonexmo","full_name":"silviucm/gonexmo","owner":{"login":"silviucm","id":6261881,"avatar_url":"https://avatars.githubusercontent.com/u/6261881?v=3","gravatar_id":"","url":"https://api.github.com/users/silviucm","html_url":"https://github.com/silviucm","followers_url":"https://api.github.com/users/silviucm/followers","following_url":"https://api.github.com/users/silviucm/following{/other_user}","gists_url":"https://api.github.com/users/silviucm/gists{/gist_id}","starred_url":"https://api.github.com/users/silviucm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silviucm/subscriptions","organizations_url":"https://api.github.com/users/silviucm/orgs","repos_url":"https://api.github.com/users/silviucm/repos","events_url":"https://api.github.com/users/silviucm/events{/privacy}","received_events_url":"https://api.github.com/users/silviucm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/silviucm/gonexmo","description":"A Nexmo library for Golang","fork":true,"url":"https://api.github.com/repos/silviucm/gonexmo","forks_url":"https://api.github.com/repos/silviucm/gonexmo/forks","keys_url":"https://api.github.com/repos/silviucm/gonexmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silviucm/gonexmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silviucm/gonexmo/teams","hooks_url":"https://api.github.com/repos/silviucm/gonexmo/hooks","issue_events_url":"https://api.github.com/repos/silviucm/gonexmo/issues/events{/number}","events_url":"https://api.github.com/repos/silviucm/gonexmo/events","assignees_url":"https://api.github.com/repos/silviucm/gonexmo/assignees{/user}","branches_url":"https://api.github.com/repos/silviucm/gonexmo/branches{/branch}","tags_url":"https://api.github.com/repos/silviucm/gonexmo/tags","blobs_url":"https://api.github.com/repos/silviucm/gonexmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silviucm/gonexmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silviucm/gonexmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/silviucm/gonexmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silviucm/gonexmo/statuses/{sha}","languages_url":"https://api.github.com/repos/silviucm/gonexmo/languages","stargazers_url":"https://api.github.com/repos/silviucm/gonexmo/stargazers","contributors_url":"https://api.github.com/repos/silviucm/gonexmo/contributors","subscribers_url":"https://api.github.com/repos/silviucm/gonexmo/subscribers","subscription_url":"https://api.github.com/repos/silviucm/gonexmo/subscription","commits_url":"https://api.github.com/repos/silviucm/gonexmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/silviucm/gonexmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/silviucm/gonexmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/silviucm/gonexmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/silviucm/gonexmo/contents/{+path}","compare_url":"https://api.github.com/repos/silviucm/gonexmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silviucm/gonexmo/merges","archive_url":"https://api.github.com/repos/silviucm/gonexmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silviucm/gonexmo/downloads","issues_url":"https://api.github.com/repos/silviucm/gonexmo/issues{/number}","pulls_url":"https://api.github.com/repos/silviucm/gonexmo/pulls{/number}","milestones_url":"https://api.github.com/repos/silviucm/gonexmo/milestones{/number}","notifications_url":"https://api.github.com/repos/silviucm/gonexmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silviucm/gonexmo/labels{/name}","releases_url":"https://api.github.com/repos/silviucm/gonexmo/releases{/id}","created_at":"2015-11-13T04:06:28Z","updated_at":"2015-11-13T04:06:29Z","pushed_at":"2015-11-13T04:09:42Z","git_url":"git://github.com/silviucm/gonexmo.git","ssh_url":"git@github.com:silviucm/gonexmo.git","clone_url":"https://github.com/silviucm/gonexmo.git","svn_url":"https://github.com/silviucm/gonexmo","homepage":"","size":223,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"njern:master","ref":"master","sha":"9064fa9db8f898dbeecd16d6bd14b9f6474f0a90","user":{"login":"njern","id":974433,"avatar_url":"https://avatars.githubusercontent.com/u/974433?v=3","gravatar_id":"","url":"https://api.github.com/users/njern","html_url":"https://github.com/njern","followers_url":"https://api.github.com/users/njern/followers","following_url":"https://api.github.com/users/njern/following{/other_user}","gists_url":"https://api.github.com/users/njern/gists{/gist_id}","starred_url":"https://api.github.com/users/njern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njern/subscriptions","organizations_url":"https://api.github.com/users/njern/orgs","repos_url":"https://api.github.com/users/njern/repos","events_url":"https://api.github.com/users/njern/events{/privacy}","received_events_url":"https://api.github.com/users/njern/received_events","type":"User","site_admin":false},"repo":{"id":15363884,"name":"gonexmo","full_name":"njern/gonexmo","owner":{"login":"njern","id":974433,"avatar_url":"https://avatars.githubusercontent.com/u/974433?v=3","gravatar_id":"","url":"https://api.github.com/users/njern","html_url":"https://github.com/njern","followers_url":"https://api.github.com/users/njern/followers","following_url":"https://api.github.com/users/njern/following{/other_user}","gists_url":"https://api.github.com/users/njern/gists{/gist_id}","starred_url":"https://api.github.com/users/njern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njern/subscriptions","organizations_url":"https://api.github.com/users/njern/orgs","repos_url":"https://api.github.com/users/njern/repos","events_url":"https://api.github.com/users/njern/events{/privacy}","received_events_url":"https://api.github.com/users/njern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/njern/gonexmo","description":"A Nexmo library for Golang","fork":false,"url":"https://api.github.com/repos/njern/gonexmo","forks_url":"https://api.github.com/repos/njern/gonexmo/forks","keys_url":"https://api.github.com/repos/njern/gonexmo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/njern/gonexmo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/njern/gonexmo/teams","hooks_url":"https://api.github.com/repos/njern/gonexmo/hooks","issue_events_url":"https://api.github.com/repos/njern/gonexmo/issues/events{/number}","events_url":"https://api.github.com/repos/njern/gonexmo/events","assignees_url":"https://api.github.com/repos/njern/gonexmo/assignees{/user}","branches_url":"https://api.github.com/repos/njern/gonexmo/branches{/branch}","tags_url":"https://api.github.com/repos/njern/gonexmo/tags","blobs_url":"https://api.github.com/repos/njern/gonexmo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/njern/gonexmo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/njern/gonexmo/git/refs{/sha}","trees_url":"https://api.github.com/repos/njern/gonexmo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/njern/gonexmo/statuses/{sha}","languages_url":"https://api.github.com/repos/njern/gonexmo/languages","stargazers_url":"https://api.github.com/repos/njern/gonexmo/stargazers","contributors_url":"https://api.github.com/repos/njern/gonexmo/contributors","subscribers_url":"https://api.github.com/repos/njern/gonexmo/subscribers","subscription_url":"https://api.github.com/repos/njern/gonexmo/subscription","commits_url":"https://api.github.com/repos/njern/gonexmo/commits{/sha}","git_commits_url":"https://api.github.com/repos/njern/gonexmo/git/commits{/sha}","comments_url":"https://api.github.com/repos/njern/gonexmo/comments{/number}","issue_comment_url":"https://api.github.com/repos/njern/gonexmo/issues/comments{/number}","contents_url":"https://api.github.com/repos/njern/gonexmo/contents/{+path}","compare_url":"https://api.github.com/repos/njern/gonexmo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/njern/gonexmo/merges","archive_url":"https://api.github.com/repos/njern/gonexmo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/njern/gonexmo/downloads","issues_url":"https://api.github.com/repos/njern/gonexmo/issues{/number}","pulls_url":"https://api.github.com/repos/njern/gonexmo/pulls{/number}","milestones_url":"https://api.github.com/repos/njern/gonexmo/milestones{/number}","notifications_url":"https://api.github.com/repos/njern/gonexmo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/njern/gonexmo/labels{/name}","releases_url":"https://api.github.com/repos/njern/gonexmo/releases{/id}","created_at":"2013-12-21T18:52:39Z","updated_at":"2015-11-05T01:52:05Z","pushed_at":"2015-11-13T04:12:35Z","git_url":"git://github.com/njern/gonexmo.git","ssh_url":"git@github.com:njern/gonexmo.git","clone_url":"https://github.com/njern/gonexmo.git","svn_url":"https://github.com/njern/gonexmo","homepage":"","size":223,"stargazers_count":19,"watchers_count":19,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":3,"forks":8,"open_issues":3,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/njern/gonexmo/pulls/12"},"html":{"href":"https://github.com/njern/gonexmo/pull/12"},"issue":{"href":"https://api.github.com/repos/njern/gonexmo/issues/12"},"comments":{"href":"https://api.github.com/repos/njern/gonexmo/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/njern/gonexmo/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/njern/gonexmo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/njern/gonexmo/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/njern/gonexmo/statuses/d2299ff923a91848f62199fc85f9fa82e4d11240"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":4,"changed_files":1}}