{"action":"created","comment":{"url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/comments/191272769","pull_request_review_id":123811428,"id":191272769,"diff_hunk":"@@ -55,27 +55,17 @@ public function sendSMS($message) {\n \t\t$error = \"\";\n \t\t$success = 1;\n \t\t\n-\t\tif(empty($this->recipients)) return false;\n \t\t$recipients = join(',', $this->recipients);\n \t\t\n-\t\t$premium_sms = false;\n-\t\t//FR = premium, WWW = world, XXX = Low cost\n-\t\t\n \t\t$message = urlencode($message);\n \t\t\n-\t\tif($premium_sms) {\n-\t\t\t$sms_type = \"FR\";\n-\t\t\t$message.= PHP_EOL . \"STOP au XXXXX\";\n-\t\t}\n-\t\telse $sms_type = \"XXX\";\n-\t\t\n \t\t$curl = curl_init();\n \t\tcurl_setopt($curl,CURLOPT_URL, \"http://www.octopush-dm.com/api/sms/?\" . http_build_query(\n \t\t\t\tarray(\n \t\t\t\t\t\"user_login\" => $this->username,\n \t\t\t\t\t\"api_key\" => $this->password,\n \t\t\t\t\t\"sms_recipients\" => $recipients,\n-\t\t\t\t\t\"sms_type\" => $sms_type,\n+\t\t\t\t\t\"sms_type\" => \"XXX\", //FR = premium, WWW = world, XXX = Low cost","path":"src/psm/Txtmsg/Octopush.php","position":null,"original_position":25,"commit_id":"79cbcb3eed873a3f520c28e9b85b02c2f7f42571","original_commit_id":"e4026f4af1fb793ec0439bbb0be20f3bdb1cc2fe","user":{"login":"TimZ99","id":15219858,"avatar_url":"https://avatars1.githubusercontent.com/u/15219858?v=4","gravatar_id":"","url":"https://api.github.com/users/TimZ99","html_url":"https://github.com/TimZ99","followers_url":"https://api.github.com/users/TimZ99/followers","following_url":"https://api.github.com/users/TimZ99/following{/other_user}","gists_url":"https://api.github.com/users/TimZ99/gists{/gist_id}","starred_url":"https://api.github.com/users/TimZ99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimZ99/subscriptions","organizations_url":"https://api.github.com/users/TimZ99/orgs","repos_url":"https://api.github.com/users/TimZ99/repos","events_url":"https://api.github.com/users/TimZ99/events{/privacy}","received_events_url":"https://api.github.com/users/TimZ99/received_events","type":"User","site_admin":false},"body":"If type = FR the message will be: Test+message+STOP+au+XXXXX","created_at":"2018-05-28T21:16:10Z","updated_at":"2018-05-28T21:16:10Z","html_url":"https://github.com/phpservermon/phpservermon/pull/593#discussion_r191272769","pull_request_url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/comments/191272769"},"html":{"href":"https://github.com/phpservermon/phpservermon/pull/593#discussion_r191272769"},"pull_request":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593"}},"in_reply_to_id":191272118},"pull_request":{"url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593","id":190932547,"html_url":"https://github.com/phpservermon/phpservermon/pull/593","diff_url":"https://github.com/phpservermon/phpservermon/pull/593.diff","patch_url":"https://github.com/phpservermon/phpservermon/pull/593.patch","issue_url":"https://api.github.com/repos/phpservermon/phpservermon/issues/593","number":593,"state":"open","locked":false,"title":"Added GatewayAPI and updated others","user":{"login":"wardpieters","id":19374765,"avatar_url":"https://avatars1.githubusercontent.com/u/19374765?v=4","gravatar_id":"","url":"https://api.github.com/users/wardpieters","html_url":"https://github.com/wardpieters","followers_url":"https://api.github.com/users/wardpieters/followers","following_url":"https://api.github.com/users/wardpieters/following{/other_user}","gists_url":"https://api.github.com/users/wardpieters/gists{/gist_id}","starred_url":"https://api.github.com/users/wardpieters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardpieters/subscriptions","organizations_url":"https://api.github.com/users/wardpieters/orgs","repos_url":"https://api.github.com/users/wardpieters/repos","events_url":"https://api.github.com/users/wardpieters/events{/privacy}","received_events_url":"https://api.github.com/users/wardpieters/received_events","type":"User","site_admin":false},"body":"- Adds support for [GatewayAPI](https://gatewayapi.com/)\r\n- Adds support for [Plivo](https://www.plivo.com/)\r\n- Adds support for [Callr](https://www.callr.com/)\r\n- Adds support for [SolutionsInfini](https://dev.solutionsinfini.com/docs/sending-an-sms-using-an-api)\r\n- Rewrited all the gateways\r\n\r\n#585, #588 ","created_at":"2018-05-28T13:34:43Z","updated_at":"2018-05-28T21:16:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26ca99d0e8ad2eec101506cfe4ad6108ebd8ba0f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593/commits","review_comments_url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593/comments","review_comment_url":"https://api.github.com/repos/phpservermon/phpservermon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phpservermon/phpservermon/issues/593/comments","statuses_url":"https://api.github.com/repos/phpservermon/phpservermon/statuses/79cbcb3eed873a3f520c28e9b85b02c2f7f42571","head":{"label":"wardpieters:develop","ref":"develop","sha":"79cbcb3eed873a3f520c28e9b85b02c2f7f42571","user":{"login":"wardpieters","id":19374765,"avatar_url":"https://avatars1.githubusercontent.com/u/19374765?v=4","gravatar_id":"","url":"https://api.github.com/users/wardpieters","html_url":"https://github.com/wardpieters","followers_url":"https://api.github.com/users/wardpieters/followers","following_url":"https://api.github.com/users/wardpieters/following{/other_user}","gists_url":"https://api.github.com/users/wardpieters/gists{/gist_id}","starred_url":"https://api.github.com/users/wardpieters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardpieters/subscriptions","organizations_url":"https://api.github.com/users/wardpieters/orgs","repos_url":"https://api.github.com/users/wardpieters/repos","events_url":"https://api.github.com/users/wardpieters/events{/privacy}","received_events_url":"https://api.github.com/users/wardpieters/received_events","type":"User","site_admin":false},"repo":{"id":135163178,"name":"phpservermon","full_name":"wardpieters/phpservermon","owner":{"login":"wardpieters","id":19374765,"avatar_url":"https://avatars1.githubusercontent.com/u/19374765?v=4","gravatar_id":"","url":"https://api.github.com/users/wardpieters","html_url":"https://github.com/wardpieters","followers_url":"https://api.github.com/users/wardpieters/followers","following_url":"https://api.github.com/users/wardpieters/following{/other_user}","gists_url":"https://api.github.com/users/wardpieters/gists{/gist_id}","starred_url":"https://api.github.com/users/wardpieters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardpieters/subscriptions","organizations_url":"https://api.github.com/users/wardpieters/orgs","repos_url":"https://api.github.com/users/wardpieters/repos","events_url":"https://api.github.com/users/wardpieters/events{/privacy}","received_events_url":"https://api.github.com/users/wardpieters/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wardpieters/phpservermon","description":"PHP Server Monitor","fork":true,"url":"https://api.github.com/repos/wardpieters/phpservermon","forks_url":"https://api.github.com/repos/wardpieters/phpservermon/forks","keys_url":"https://api.github.com/repos/wardpieters/phpservermon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wardpieters/phpservermon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wardpieters/phpservermon/teams","hooks_url":"https://api.github.com/repos/wardpieters/phpservermon/hooks","issue_events_url":"https://api.github.com/repos/wardpieters/phpservermon/issues/events{/number}","events_url":"https://api.github.com/repos/wardpieters/phpservermon/events","assignees_url":"https://api.github.com/repos/wardpieters/phpservermon/assignees{/user}","branches_url":"https://api.github.com/repos/wardpieters/phpservermon/branches{/branch}","tags_url":"https://api.github.com/repos/wardpieters/phpservermon/tags","blobs_url":"https://api.github.com/repos/wardpieters/phpservermon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wardpieters/phpservermon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wardpieters/phpservermon/git/refs{/sha}","trees_url":"https://api.github.com/repos/wardpieters/phpservermon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wardpieters/phpservermon/statuses/{sha}","languages_url":"https://api.github.com/repos/wardpieters/phpservermon/languages","stargazers_url":"https://api.github.com/repos/wardpieters/phpservermon/stargazers","contributors_url":"https://api.github.com/repos/wardpieters/phpservermon/contributors","subscribers_url":"https://api.github.com/repos/wardpieters/phpservermon/subscribers","subscription_url":"https://api.github.com/repos/wardpieters/phpservermon/subscription","commits_url":"https://api.github.com/repos/wardpieters/phpservermon/commits{/sha}","git_commits_url":"https://api.github.com/repos/wardpieters/phpservermon/git/commits{/sha}","comments_url":"https://api.github.com/repos/wardpieters/phpservermon/comments{/number}","issue_comment_url":"https://api.github.com/repos/wardpieters/phpservermon/issues/comments{/number}","contents_url":"https://api.github.com/repos/wardpieters/phpservermon/contents/{+path}","compare_url":"https://api.github.com/repos/wardpieters/phpservermon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wardpieters/phpservermon/merges","archive_url":"https://api.github.com/repos/wardpieters/phpservermon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wardpieters/phpservermon/downloads","issues_url":"https://api.github.com/repos/wardpieters/phpservermon/issues{/number}","pulls_url":"https://api.github.com/repos/wardpieters/phpservermon/pulls{/number}","milestones_url":"https://api.github.com/repos/wardpieters/phpservermon/milestones{/number}","notifications_url":"https://api.github.com/repos/wardpieters/phpservermon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wardpieters/phpservermon/labels{/name}","releases_url":"https://api.github.com/repos/wardpieters/phpservermon/releases{/id}","deployments_url":"https://api.github.com/repos/wardpieters/phpservermon/deployments","created_at":"2018-05-28T13:15:26Z","updated_at":"2018-05-28T21:15:21Z","pushed_at":"2018-05-28T21:15:20Z","git_url":"git://github.com/wardpieters/phpservermon.git","ssh_url":"git@github.com:wardpieters/phpservermon.git","clone_url":"https://github.com/wardpieters/phpservermon.git","svn_url":"https://github.com/wardpieters/phpservermon","homepage":"http://www.phpservermonitor.org","size":5280,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"phpservermon:develop","ref":"develop","sha":"c3751e7e57f489b767d0145e31b37c386f5c7343","user":{"login":"phpservermon","id":6368455,"avatar_url":"https://avatars0.githubusercontent.com/u/6368455?v=4","gravatar_id":"","url":"https://api.github.com/users/phpservermon","html_url":"https://github.com/phpservermon","followers_url":"https://api.github.com/users/phpservermon/followers","following_url":"https://api.github.com/users/phpservermon/following{/other_user}","gists_url":"https://api.github.com/users/phpservermon/gists{/gist_id}","starred_url":"https://api.github.com/users/phpservermon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpservermon/subscriptions","organizations_url":"https://api.github.com/users/phpservermon/orgs","repos_url":"https://api.github.com/users/phpservermon/repos","events_url":"https://api.github.com/users/phpservermon/events{/privacy}","received_events_url":"https://api.github.com/users/phpservermon/received_events","type":"Organization","site_admin":false},"repo":{"id":15714600,"name":"phpservermon","full_name":"phpservermon/phpservermon","owner":{"login":"phpservermon","id":6368455,"avatar_url":"https://avatars0.githubusercontent.com/u/6368455?v=4","gravatar_id":"","url":"https://api.github.com/users/phpservermon","html_url":"https://github.com/phpservermon","followers_url":"https://api.github.com/users/phpservermon/followers","following_url":"https://api.github.com/users/phpservermon/following{/other_user}","gists_url":"https://api.github.com/users/phpservermon/gists{/gist_id}","starred_url":"https://api.github.com/users/phpservermon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phpservermon/subscriptions","organizations_url":"https://api.github.com/users/phpservermon/orgs","repos_url":"https://api.github.com/users/phpservermon/repos","events_url":"https://api.github.com/users/phpservermon/events{/privacy}","received_events_url":"https://api.github.com/users/phpservermon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phpservermon/phpservermon","description":"PHP Server Monitor","fork":false,"url":"https://api.github.com/repos/phpservermon/phpservermon","forks_url":"https://api.github.com/repos/phpservermon/phpservermon/forks","keys_url":"https://api.github.com/repos/phpservermon/phpservermon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phpservermon/phpservermon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phpservermon/phpservermon/teams","hooks_url":"https://api.github.com/repos/phpservermon/phpservermon/hooks","issue_events_url":"https://api.github.com/repos/phpservermon/phpservermon/issues/events{/number}","events_url":"https://api.github.com/repos/phpservermon/phpservermon/events","assignees_url":"https://api.github.com/repos/phpservermon/phpservermon/assignees{/user}","branches_url":"https://api.github.com/repos/phpservermon/phpservermon/branches{/branch}","tags_url":"https://api.github.com/repos/phpservermon/phpservermon/tags","blobs_url":"https://api.github.com/repos/phpservermon/phpservermon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phpservermon/phpservermon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phpservermon/phpservermon/git/refs{/sha}","trees_url":"https://api.github.com/repos/phpservermon/phpservermon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phpservermon/phpservermon/statuses/{sha}","languages_url":"https://api.github.com/repos/phpservermon/phpservermon/languages","stargazers_url":"https://api.github.com/repos/phpservermon/phpservermon/stargazers","contributors_url":"https://api.github.com/repos/phpservermon/phpservermon/contributors","subscribers_url":"https://api.github.com/repos/phpservermon/phpservermon/subscribers","subscription_url":"https://api.github.com/repos/phpservermon/phpservermon/subscription","commits_url":"https://api.github.com/repos/phpservermon/phpservermon/commits{/sha}","git_commits_url":"https://api.github.com/repos/phpservermon/phpservermon/git/commits{/sha}","comments_url":"https://api.github.com/repos/phpservermon/phpservermon/comments{/number}","issue_comment_url":"https://api.github.com/repos/phpservermon/phpservermon/issues/comments{/number}","contents_url":"https://api.github.com/repos/phpservermon/phpservermon/contents/{+path}","compare_url":"https://api.github.com/repos/phpservermon/phpservermon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phpservermon/phpservermon/merges","archive_url":"https://api.github.com/repos/phpservermon/phpservermon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phpservermon/phpservermon/downloads","issues_url":"https://api.github.com/repos/phpservermon/phpservermon/issues{/number}","pulls_url":"https://api.github.com/repos/phpservermon/phpservermon/pulls{/number}","milestones_url":"https://api.github.com/repos/phpservermon/phpservermon/milestones{/number}","notifications_url":"https://api.github.com/repos/phpservermon/phpservermon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phpservermon/phpservermon/labels{/name}","releases_url":"https://api.github.com/repos/phpservermon/phpservermon/releases{/id}","deployments_url":"https://api.github.com/repos/phpservermon/phpservermon/deployments","created_at":"2014-01-07T19:40:54Z","updated_at":"2018-05-28T14:59:48Z","pushed_at":"2018-05-28T21:15:20Z","git_url":"git://github.com/phpservermon/phpservermon.git","ssh_url":"git@github.com:phpservermon/phpservermon.git","clone_url":"https://github.com/phpservermon/phpservermon.git","svn_url":"https://github.com/phpservermon/phpservermon","homepage":"http://www.phpservermonitor.org","size":5158,"stargazers_count":1088,"watchers_count":1088,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":425,"mirror_url":null,"archived":false,"open_issues_count":122,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":425,"open_issues":122,"watchers":1088,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593"},"html":{"href":"https://github.com/phpservermon/phpservermon/pull/593"},"issue":{"href":"https://api.github.com/repos/phpservermon/phpservermon/issues/593"},"comments":{"href":"https://api.github.com/repos/phpservermon/phpservermon/issues/593/comments"},"review_comments":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593/comments"},"review_comment":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phpservermon/phpservermon/pulls/593/commits"},"statuses":{"href":"https://api.github.com/repos/phpservermon/phpservermon/statuses/79cbcb3eed873a3f520c28e9b85b02c2f7f42571"}},"author_association":"NONE"}}
{"actor":{"display_login":"TimZ99"}}