{"action":"created","comment":{"url":"https://api.github.com/repos/messagebird/sachet/pulls/comments/89746613","pull_request_review_id":10281146,"id":89746613,"diff_hunk":"@@ -0,0 +1,67 @@\n+package main\n+\n+import (\n+\t\"fmt\"\n+\t\"net/http\"\n+\n+\t\"github.com/parnurzeal/gorequest\"\n+\t\"time\"\n+)\n+\n+//ExotelBaseURL is the base url for exotel api\n+const ExotelBaseURL = \"https://twilix.exotel.in\"\n+//ExotelRetryInterval is the retry interval for failed requests\n+const ExotelRetryInterval = 3 //in Seconds\n+\n+//Exotel is the exte Exotel\n+type Exotel struct {\n+\tAccountSid string\n+\tToken      string\n+\trequester  *gorequest.SuperAgent\n+}\n+\n+//NewExotel creates a new\n+func NewExotel(sid ,token string) *Exotel {\n+\tExotel := &Exotel{requester: gorequest.New().SetBasicAuth(sid, token), AccountSid: sid, Token: token}\n+\treturn Exotel\n+}\n+\n+//SetHeaders Sets needed headers\n+func (c *Exotel) setHeaders() *Exotel {","path":"exotel.go","position":30,"original_position":30,"commit_id":"9ed1afcaf552552f38aa4009168c1ddf14bb5b0f","original_commit_id":"60dbdb8478921f9aa3d4281fd1021d9302f481b7","user":{"login":"samwierema","id":276453,"avatar_url":"https://avatars.githubusercontent.com/u/276453?v=3","gravatar_id":"","url":"https://api.github.com/users/samwierema","html_url":"https://github.com/samwierema","followers_url":"https://api.github.com/users/samwierema/followers","following_url":"https://api.github.com/users/samwierema/following{/other_user}","gists_url":"https://api.github.com/users/samwierema/gists{/gist_id}","starred_url":"https://api.github.com/users/samwierema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwierema/subscriptions","organizations_url":"https://api.github.com/users/samwierema/orgs","repos_url":"https://api.github.com/users/samwierema/repos","events_url":"https://api.github.com/users/samwierema/events{/privacy}","received_events_url":"https://api.github.com/users/samwierema/received_events","type":"User","site_admin":false},"body":"I think you can just include this in the `sendSMS()` function","created_at":"2016-11-28T09:50:11Z","updated_at":"2016-11-28T09:50:11Z","html_url":"https://github.com/messagebird/sachet/pull/11#discussion_r89746613","pull_request_url":"https://api.github.com/repos/messagebird/sachet/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/comments/89746613"},"html":{"href":"https://github.com/messagebird/sachet/pull/11#discussion_r89746613"},"pull_request":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/messagebird/sachet/pulls/11","id":95461102,"html_url":"https://github.com/messagebird/sachet/pull/11","diff_url":"https://github.com/messagebird/sachet/pull/11.diff","patch_url":"https://github.com/messagebird/sachet/pull/11.patch","issue_url":"https://api.github.com/repos/messagebird/sachet/issues/11","number":11,"state":"open","locked":false,"title":"Added exotel as a vendor for sending sms  : India Only","user":{"login":"sarathsp06","id":964542,"avatar_url":"https://avatars.githubusercontent.com/u/964542?v=3","gravatar_id":"","url":"https://api.github.com/users/sarathsp06","html_url":"https://github.com/sarathsp06","followers_url":"https://api.github.com/users/sarathsp06/followers","following_url":"https://api.github.com/users/sarathsp06/following{/other_user}","gists_url":"https://api.github.com/users/sarathsp06/gists{/gist_id}","starred_url":"https://api.github.com/users/sarathsp06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarathsp06/subscriptions","organizations_url":"https://api.github.com/users/sarathsp06/orgs","repos_url":"https://api.github.com/users/sarathsp06/repos","events_url":"https://api.github.com/users/sarathsp06/events{/privacy}","received_events_url":"https://api.github.com/users/sarathsp06/received_events","type":"User","site_admin":false},"body":"Testing ? - Will do later","created_at":"2016-11-28T09:14:51Z","updated_at":"2016-11-28T09:51:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/messagebird/sachet/pulls/11/commits","review_comments_url":"https://api.github.com/repos/messagebird/sachet/pulls/11/comments","review_comment_url":"https://api.github.com/repos/messagebird/sachet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/messagebird/sachet/issues/11/comments","statuses_url":"https://api.github.com/repos/messagebird/sachet/statuses/9ed1afcaf552552f38aa4009168c1ddf14bb5b0f","head":{"label":"sarathsp06:feature/exotel","ref":"feature/exotel","sha":"9ed1afcaf552552f38aa4009168c1ddf14bb5b0f","user":{"login":"sarathsp06","id":964542,"avatar_url":"https://avatars.githubusercontent.com/u/964542?v=3","gravatar_id":"","url":"https://api.github.com/users/sarathsp06","html_url":"https://github.com/sarathsp06","followers_url":"https://api.github.com/users/sarathsp06/followers","following_url":"https://api.github.com/users/sarathsp06/following{/other_user}","gists_url":"https://api.github.com/users/sarathsp06/gists{/gist_id}","starred_url":"https://api.github.com/users/sarathsp06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarathsp06/subscriptions","organizations_url":"https://api.github.com/users/sarathsp06/orgs","repos_url":"https://api.github.com/users/sarathsp06/repos","events_url":"https://api.github.com/users/sarathsp06/events{/privacy}","received_events_url":"https://api.github.com/users/sarathsp06/received_events","type":"User","site_admin":false},"repo":{"id":74587480,"name":"sachet","full_name":"sarathsp06/sachet","owner":{"login":"sarathsp06","id":964542,"avatar_url":"https://avatars.githubusercontent.com/u/964542?v=3","gravatar_id":"","url":"https://api.github.com/users/sarathsp06","html_url":"https://github.com/sarathsp06","followers_url":"https://api.github.com/users/sarathsp06/followers","following_url":"https://api.github.com/users/sarathsp06/following{/other_user}","gists_url":"https://api.github.com/users/sarathsp06/gists{/gist_id}","starred_url":"https://api.github.com/users/sarathsp06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarathsp06/subscriptions","organizations_url":"https://api.github.com/users/sarathsp06/orgs","repos_url":"https://api.github.com/users/sarathsp06/repos","events_url":"https://api.github.com/users/sarathsp06/events{/privacy}","received_events_url":"https://api.github.com/users/sarathsp06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sarathsp06/sachet","description":"SMS alerts for Prometheus' Alertmanager","fork":true,"url":"https://api.github.com/repos/sarathsp06/sachet","forks_url":"https://api.github.com/repos/sarathsp06/sachet/forks","keys_url":"https://api.github.com/repos/sarathsp06/sachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sarathsp06/sachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sarathsp06/sachet/teams","hooks_url":"https://api.github.com/repos/sarathsp06/sachet/hooks","issue_events_url":"https://api.github.com/repos/sarathsp06/sachet/issues/events{/number}","events_url":"https://api.github.com/repos/sarathsp06/sachet/events","assignees_url":"https://api.github.com/repos/sarathsp06/sachet/assignees{/user}","branches_url":"https://api.github.com/repos/sarathsp06/sachet/branches{/branch}","tags_url":"https://api.github.com/repos/sarathsp06/sachet/tags","blobs_url":"https://api.github.com/repos/sarathsp06/sachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sarathsp06/sachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sarathsp06/sachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/sarathsp06/sachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sarathsp06/sachet/statuses/{sha}","languages_url":"https://api.github.com/repos/sarathsp06/sachet/languages","stargazers_url":"https://api.github.com/repos/sarathsp06/sachet/stargazers","contributors_url":"https://api.github.com/repos/sarathsp06/sachet/contributors","subscribers_url":"https://api.github.com/repos/sarathsp06/sachet/subscribers","subscription_url":"https://api.github.com/repos/sarathsp06/sachet/subscription","commits_url":"https://api.github.com/repos/sarathsp06/sachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/sarathsp06/sachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/sarathsp06/sachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/sarathsp06/sachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/sarathsp06/sachet/contents/{+path}","compare_url":"https://api.github.com/repos/sarathsp06/sachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sarathsp06/sachet/merges","archive_url":"https://api.github.com/repos/sarathsp06/sachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sarathsp06/sachet/downloads","issues_url":"https://api.github.com/repos/sarathsp06/sachet/issues{/number}","pulls_url":"https://api.github.com/repos/sarathsp06/sachet/pulls{/number}","milestones_url":"https://api.github.com/repos/sarathsp06/sachet/milestones{/number}","notifications_url":"https://api.github.com/repos/sarathsp06/sachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sarathsp06/sachet/labels{/name}","releases_url":"https://api.github.com/repos/sarathsp06/sachet/releases{/id}","deployments_url":"https://api.github.com/repos/sarathsp06/sachet/deployments","created_at":"2016-11-23T15:05:32Z","updated_at":"2016-11-23T15:05:33Z","pushed_at":"2016-11-28T09:18:13Z","git_url":"git://github.com/sarathsp06/sachet.git","ssh_url":"git@github.com:sarathsp06/sachet.git","clone_url":"https://github.com/sarathsp06/sachet.git","svn_url":"https://github.com/sarathsp06/sachet","homepage":"https://www.messagebird.com","size":1815,"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":"messagebird:master","ref":"master","sha":"6fb7321dee18c92bcd86f1048d9d31270e81be0e","user":{"login":"messagebird","id":8026118,"avatar_url":"https://avatars.githubusercontent.com/u/8026118?v=3","gravatar_id":"","url":"https://api.github.com/users/messagebird","html_url":"https://github.com/messagebird","followers_url":"https://api.github.com/users/messagebird/followers","following_url":"https://api.github.com/users/messagebird/following{/other_user}","gists_url":"https://api.github.com/users/messagebird/gists{/gist_id}","starred_url":"https://api.github.com/users/messagebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messagebird/subscriptions","organizations_url":"https://api.github.com/users/messagebird/orgs","repos_url":"https://api.github.com/users/messagebird/repos","events_url":"https://api.github.com/users/messagebird/events{/privacy}","received_events_url":"https://api.github.com/users/messagebird/received_events","type":"Organization","site_admin":false},"repo":{"id":60848440,"name":"sachet","full_name":"messagebird/sachet","owner":{"login":"messagebird","id":8026118,"avatar_url":"https://avatars.githubusercontent.com/u/8026118?v=3","gravatar_id":"","url":"https://api.github.com/users/messagebird","html_url":"https://github.com/messagebird","followers_url":"https://api.github.com/users/messagebird/followers","following_url":"https://api.github.com/users/messagebird/following{/other_user}","gists_url":"https://api.github.com/users/messagebird/gists{/gist_id}","starred_url":"https://api.github.com/users/messagebird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/messagebird/subscriptions","organizations_url":"https://api.github.com/users/messagebird/orgs","repos_url":"https://api.github.com/users/messagebird/repos","events_url":"https://api.github.com/users/messagebird/events{/privacy}","received_events_url":"https://api.github.com/users/messagebird/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/messagebird/sachet","description":"SMS alerts for Prometheus' Alertmanager","fork":false,"url":"https://api.github.com/repos/messagebird/sachet","forks_url":"https://api.github.com/repos/messagebird/sachet/forks","keys_url":"https://api.github.com/repos/messagebird/sachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/messagebird/sachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/messagebird/sachet/teams","hooks_url":"https://api.github.com/repos/messagebird/sachet/hooks","issue_events_url":"https://api.github.com/repos/messagebird/sachet/issues/events{/number}","events_url":"https://api.github.com/repos/messagebird/sachet/events","assignees_url":"https://api.github.com/repos/messagebird/sachet/assignees{/user}","branches_url":"https://api.github.com/repos/messagebird/sachet/branches{/branch}","tags_url":"https://api.github.com/repos/messagebird/sachet/tags","blobs_url":"https://api.github.com/repos/messagebird/sachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/messagebird/sachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/messagebird/sachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/messagebird/sachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/messagebird/sachet/statuses/{sha}","languages_url":"https://api.github.com/repos/messagebird/sachet/languages","stargazers_url":"https://api.github.com/repos/messagebird/sachet/stargazers","contributors_url":"https://api.github.com/repos/messagebird/sachet/contributors","subscribers_url":"https://api.github.com/repos/messagebird/sachet/subscribers","subscription_url":"https://api.github.com/repos/messagebird/sachet/subscription","commits_url":"https://api.github.com/repos/messagebird/sachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/messagebird/sachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/messagebird/sachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/messagebird/sachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/messagebird/sachet/contents/{+path}","compare_url":"https://api.github.com/repos/messagebird/sachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/messagebird/sachet/merges","archive_url":"https://api.github.com/repos/messagebird/sachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/messagebird/sachet/downloads","issues_url":"https://api.github.com/repos/messagebird/sachet/issues{/number}","pulls_url":"https://api.github.com/repos/messagebird/sachet/pulls{/number}","milestones_url":"https://api.github.com/repos/messagebird/sachet/milestones{/number}","notifications_url":"https://api.github.com/repos/messagebird/sachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/messagebird/sachet/labels{/name}","releases_url":"https://api.github.com/repos/messagebird/sachet/releases{/id}","deployments_url":"https://api.github.com/repos/messagebird/sachet/deployments","created_at":"2016-06-10T13:08:57Z","updated_at":"2016-11-23T14:06:57Z","pushed_at":"2016-11-28T09:18:13Z","git_url":"git://github.com/messagebird/sachet.git","ssh_url":"git@github.com:messagebird/sachet.git","clone_url":"https://github.com/messagebird/sachet.git","svn_url":"https://github.com/messagebird/sachet","homepage":"https://www.messagebird.com","size":1815,"stargazers_count":6,"watchers_count":6,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/11"},"html":{"href":"https://github.com/messagebird/sachet/pull/11"},"issue":{"href":"https://api.github.com/repos/messagebird/sachet/issues/11"},"comments":{"href":"https://api.github.com/repos/messagebird/sachet/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/messagebird/sachet/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/messagebird/sachet/statuses/9ed1afcaf552552f38aa4009168c1ddf14bb5b0f"}}}}
{"actor":{"display_login":"samwierema"}}