{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18","id":67569124,"html_url":"https://github.com/carlosdp/twiliogo/pull/18","diff_url":"https://github.com/carlosdp/twiliogo/pull/18.diff","patch_url":"https://github.com/carlosdp/twiliogo/pull/18.patch","issue_url":"https://api.github.com/repos/carlosdp/twiliogo/issues/18","number":18,"state":"open","locked":false,"title":"AvaliablePhoneNumber: Initial implementation","user":{"login":"donaldguy","id":43136,"avatar_url":"https://avatars.githubusercontent.com/u/43136?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldguy","html_url":"https://github.com/donaldguy","followers_url":"https://api.github.com/users/donaldguy/followers","following_url":"https://api.github.com/users/donaldguy/following{/other_user}","gists_url":"https://api.github.com/users/donaldguy/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldguy/subscriptions","organizations_url":"https://api.github.com/users/donaldguy/orgs","repos_url":"https://api.github.com/users/donaldguy/repos","events_url":"https://api.github.com/users/donaldguy/events{/privacy}","received_events_url":"https://api.github.com/users/donaldguy/received_events","type":"User","site_admin":false},"body":"Per documentation here: https://www.twilio.com/docs/api/rest/available-phone-numbers\r\n\r\nMighta gone a little sub-type crazy, but I didn't want too many nulled fields around\r\n\r\nObviously no unit tests here (at least yet) but I have done manual testing on `GetUSACanadaLocalAvailablePhoneNumbers()` and the others are implemented ~identically\r\n\r\nI don't treat an empty return as an error condition, but maybe I should?\r\n\r\nI started to implement the Countries endpoint but didn't want to deal with paging (especially because the result for my account is just one page), so I left that in here commented out\r\n\r\n","created_at":"2016-04-22T20:34:43Z","updated_at":"2016-04-22T20:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18/commits","review_comments_url":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18/comments","review_comment_url":"https://api.github.com/repos/carlosdp/twiliogo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carlosdp/twiliogo/issues/18/comments","statuses_url":"https://api.github.com/repos/carlosdp/twiliogo/statuses/3ce1243a45f41d2b95be95df8d34599179ef2aad","head":{"label":"donaldguy:avaliable-phone-numbers","ref":"avaliable-phone-numbers","sha":"3ce1243a45f41d2b95be95df8d34599179ef2aad","user":{"login":"donaldguy","id":43136,"avatar_url":"https://avatars.githubusercontent.com/u/43136?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldguy","html_url":"https://github.com/donaldguy","followers_url":"https://api.github.com/users/donaldguy/followers","following_url":"https://api.github.com/users/donaldguy/following{/other_user}","gists_url":"https://api.github.com/users/donaldguy/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldguy/subscriptions","organizations_url":"https://api.github.com/users/donaldguy/orgs","repos_url":"https://api.github.com/users/donaldguy/repos","events_url":"https://api.github.com/users/donaldguy/events{/privacy}","received_events_url":"https://api.github.com/users/donaldguy/received_events","type":"User","site_admin":false},"repo":{"id":56799982,"name":"twiliogo","full_name":"donaldguy/twiliogo","owner":{"login":"donaldguy","id":43136,"avatar_url":"https://avatars.githubusercontent.com/u/43136?v=3","gravatar_id":"","url":"https://api.github.com/users/donaldguy","html_url":"https://github.com/donaldguy","followers_url":"https://api.github.com/users/donaldguy/followers","following_url":"https://api.github.com/users/donaldguy/following{/other_user}","gists_url":"https://api.github.com/users/donaldguy/gists{/gist_id}","starred_url":"https://api.github.com/users/donaldguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donaldguy/subscriptions","organizations_url":"https://api.github.com/users/donaldguy/orgs","repos_url":"https://api.github.com/users/donaldguy/repos","events_url":"https://api.github.com/users/donaldguy/events{/privacy}","received_events_url":"https://api.github.com/users/donaldguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donaldguy/twiliogo","description":"Go helper library for the Twilio API","fork":true,"url":"https://api.github.com/repos/donaldguy/twiliogo","forks_url":"https://api.github.com/repos/donaldguy/twiliogo/forks","keys_url":"https://api.github.com/repos/donaldguy/twiliogo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donaldguy/twiliogo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donaldguy/twiliogo/teams","hooks_url":"https://api.github.com/repos/donaldguy/twiliogo/hooks","issue_events_url":"https://api.github.com/repos/donaldguy/twiliogo/issues/events{/number}","events_url":"https://api.github.com/repos/donaldguy/twiliogo/events","assignees_url":"https://api.github.com/repos/donaldguy/twiliogo/assignees{/user}","branches_url":"https://api.github.com/repos/donaldguy/twiliogo/branches{/branch}","tags_url":"https://api.github.com/repos/donaldguy/twiliogo/tags","blobs_url":"https://api.github.com/repos/donaldguy/twiliogo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donaldguy/twiliogo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donaldguy/twiliogo/git/refs{/sha}","trees_url":"https://api.github.com/repos/donaldguy/twiliogo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donaldguy/twiliogo/statuses/{sha}","languages_url":"https://api.github.com/repos/donaldguy/twiliogo/languages","stargazers_url":"https://api.github.com/repos/donaldguy/twiliogo/stargazers","contributors_url":"https://api.github.com/repos/donaldguy/twiliogo/contributors","subscribers_url":"https://api.github.com/repos/donaldguy/twiliogo/subscribers","subscription_url":"https://api.github.com/repos/donaldguy/twiliogo/subscription","commits_url":"https://api.github.com/repos/donaldguy/twiliogo/commits{/sha}","git_commits_url":"https://api.github.com/repos/donaldguy/twiliogo/git/commits{/sha}","comments_url":"https://api.github.com/repos/donaldguy/twiliogo/comments{/number}","issue_comment_url":"https://api.github.com/repos/donaldguy/twiliogo/issues/comments{/number}","contents_url":"https://api.github.com/repos/donaldguy/twiliogo/contents/{+path}","compare_url":"https://api.github.com/repos/donaldguy/twiliogo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donaldguy/twiliogo/merges","archive_url":"https://api.github.com/repos/donaldguy/twiliogo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donaldguy/twiliogo/downloads","issues_url":"https://api.github.com/repos/donaldguy/twiliogo/issues{/number}","pulls_url":"https://api.github.com/repos/donaldguy/twiliogo/pulls{/number}","milestones_url":"https://api.github.com/repos/donaldguy/twiliogo/milestones{/number}","notifications_url":"https://api.github.com/repos/donaldguy/twiliogo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donaldguy/twiliogo/labels{/name}","releases_url":"https://api.github.com/repos/donaldguy/twiliogo/releases{/id}","deployments_url":"https://api.github.com/repos/donaldguy/twiliogo/deployments","created_at":"2016-04-21T19:22:52Z","updated_at":"2016-04-21T19:22:53Z","pushed_at":"2016-04-22T20:29:54Z","git_url":"git://github.com/donaldguy/twiliogo.git","ssh_url":"git@github.com:donaldguy/twiliogo.git","clone_url":"https://github.com/donaldguy/twiliogo.git","svn_url":"https://github.com/donaldguy/twiliogo","homepage":null,"size":57,"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":"carlosdp:master","ref":"master","sha":"0a85fda8d6e854bdbefa188be21a11bf37c8a6f4","user":{"login":"carlosdp","id":198739,"avatar_url":"https://avatars.githubusercontent.com/u/198739?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosdp","html_url":"https://github.com/carlosdp","followers_url":"https://api.github.com/users/carlosdp/followers","following_url":"https://api.github.com/users/carlosdp/following{/other_user}","gists_url":"https://api.github.com/users/carlosdp/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosdp/subscriptions","organizations_url":"https://api.github.com/users/carlosdp/orgs","repos_url":"https://api.github.com/users/carlosdp/repos","events_url":"https://api.github.com/users/carlosdp/events{/privacy}","received_events_url":"https://api.github.com/users/carlosdp/received_events","type":"User","site_admin":false},"repo":{"id":11489690,"name":"twiliogo","full_name":"carlosdp/twiliogo","owner":{"login":"carlosdp","id":198739,"avatar_url":"https://avatars.githubusercontent.com/u/198739?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosdp","html_url":"https://github.com/carlosdp","followers_url":"https://api.github.com/users/carlosdp/followers","following_url":"https://api.github.com/users/carlosdp/following{/other_user}","gists_url":"https://api.github.com/users/carlosdp/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosdp/subscriptions","organizations_url":"https://api.github.com/users/carlosdp/orgs","repos_url":"https://api.github.com/users/carlosdp/repos","events_url":"https://api.github.com/users/carlosdp/events{/privacy}","received_events_url":"https://api.github.com/users/carlosdp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlosdp/twiliogo","description":"Go helper library for the Twilio API","fork":false,"url":"https://api.github.com/repos/carlosdp/twiliogo","forks_url":"https://api.github.com/repos/carlosdp/twiliogo/forks","keys_url":"https://api.github.com/repos/carlosdp/twiliogo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlosdp/twiliogo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlosdp/twiliogo/teams","hooks_url":"https://api.github.com/repos/carlosdp/twiliogo/hooks","issue_events_url":"https://api.github.com/repos/carlosdp/twiliogo/issues/events{/number}","events_url":"https://api.github.com/repos/carlosdp/twiliogo/events","assignees_url":"https://api.github.com/repos/carlosdp/twiliogo/assignees{/user}","branches_url":"https://api.github.com/repos/carlosdp/twiliogo/branches{/branch}","tags_url":"https://api.github.com/repos/carlosdp/twiliogo/tags","blobs_url":"https://api.github.com/repos/carlosdp/twiliogo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlosdp/twiliogo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlosdp/twiliogo/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlosdp/twiliogo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlosdp/twiliogo/statuses/{sha}","languages_url":"https://api.github.com/repos/carlosdp/twiliogo/languages","stargazers_url":"https://api.github.com/repos/carlosdp/twiliogo/stargazers","contributors_url":"https://api.github.com/repos/carlosdp/twiliogo/contributors","subscribers_url":"https://api.github.com/repos/carlosdp/twiliogo/subscribers","subscription_url":"https://api.github.com/repos/carlosdp/twiliogo/subscription","commits_url":"https://api.github.com/repos/carlosdp/twiliogo/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlosdp/twiliogo/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlosdp/twiliogo/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlosdp/twiliogo/issues/comments{/number}","contents_url":"https://api.github.com/repos/carlosdp/twiliogo/contents/{+path}","compare_url":"https://api.github.com/repos/carlosdp/twiliogo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlosdp/twiliogo/merges","archive_url":"https://api.github.com/repos/carlosdp/twiliogo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlosdp/twiliogo/downloads","issues_url":"https://api.github.com/repos/carlosdp/twiliogo/issues{/number}","pulls_url":"https://api.github.com/repos/carlosdp/twiliogo/pulls{/number}","milestones_url":"https://api.github.com/repos/carlosdp/twiliogo/milestones{/number}","notifications_url":"https://api.github.com/repos/carlosdp/twiliogo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlosdp/twiliogo/labels{/name}","releases_url":"https://api.github.com/repos/carlosdp/twiliogo/releases{/id}","deployments_url":"https://api.github.com/repos/carlosdp/twiliogo/deployments","created_at":"2013-07-17T23:04:29Z","updated_at":"2016-03-30T15:45:32Z","pushed_at":"2015-12-28T16:41:03Z","git_url":"git://github.com/carlosdp/twiliogo.git","ssh_url":"git@github.com:carlosdp/twiliogo.git","clone_url":"https://github.com/carlosdp/twiliogo.git","svn_url":"https://github.com/carlosdp/twiliogo","homepage":null,"size":70,"stargazers_count":34,"watchers_count":34,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":6,"forks":26,"open_issues":6,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18"},"html":{"href":"https://github.com/carlosdp/twiliogo/pull/18"},"issue":{"href":"https://api.github.com/repos/carlosdp/twiliogo/issues/18"},"comments":{"href":"https://api.github.com/repos/carlosdp/twiliogo/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/carlosdp/twiliogo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carlosdp/twiliogo/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/carlosdp/twiliogo/statuses/3ce1243a45f41d2b95be95df8d34599179ef2aad"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":281,"deletions":4,"changed_files":3}}