Skip to content

Commit 2cd9cd1

Browse files
committed
fix missing recipient bug; add license; update readme
1 parent b9fd418 commit 2cd9cd1

File tree

5 files changed

+58
-12
lines changed

5 files changed

+58
-12
lines changed

.idea/php.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023-present seven communications GmbH & Co. KG
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
![](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "sms77 Logo")
1+
![](https://www.seven.io/wp-content/uploads/Logo.svg "seven Logo")
22

3-
# sms77 SMS for Open Source Point of Sale
3+
# seven SMS for Open Source Point of Sale
44

5-
This code implements sms77 as SMS gateway for sending messages via OSPOS.
5+
This code implements seven as SMS gateway for sending messages via OSPOS.
66

77
## Prerequisites
88

9-
- An API Key from [sms77](https://www.sms77.io) - you can create on in
10-
your [developer dashboard](https://app.sms77.io/developer).
9+
- An [API key](https://help.seven.io/en/api-key-access) from [seven](https://www.seven.io) - you can create on in
10+
your [developer dashboard](https://app.seven.io/developer).
1111
- An existing [OSPOS](https://opensourcepos.org/) installation.
1212

1313
## Installation
@@ -22,7 +22,7 @@ with [Sms_lib.php](Sms_lib.php).
2222
2. Go to `Configuration -> Setup & Conf -> Message`.
2323
3. Set `SMS-API Username` to any value, as the field is not used. Just make sure it's not
2424
empty.
25-
4. Set `SMS-API Password` to your sms77 API key.
25+
4. Set `SMS-API Password` to your seven [API key](https://help.seven.io/en/api-key-access).
2626
5. Set `SMS-API Sender ID` to your sender identifier of choice with a maximum length of 11
2727
alphanumeric or 16 numeric characters. This value gets displayed as the sender in the
2828
receivers phone device. Please notice that country specific restrictions may apply,
@@ -34,5 +34,7 @@ See the [screenshot](configuration.png) for an example configuration.
3434

3535
## Support
3636

37-
Feel free to [contact us](https://www.sms77.io/en/company/contact/) in case you need any
38-
assistance.
37+
Feel free to [contact us](https://www.seven.io/en/company/contact/) in case you need any
38+
assistance.
39+
40+
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)

Sms_lib.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public function sendSMS($to, $text) {
2020
$from = $this->CI->config->item('msg_src');
2121
$response = false;
2222

23-
if (!empty($password) && !empty($phone) && !empty($text) && !empty($from)) {
24-
$ch = curl_init('https://gateway.sms77.io/api/sms');
23+
if (!empty($password) && !empty($to) && !empty($text) && !empty($from)) {
24+
$ch = curl_init('https://gateway.seven.io/api/sms');
2525
$options = [
2626
CURLOPT_HTTPHEADER => [
2727
'Accept: application/json',
@@ -39,5 +39,3 @@ public function sendSMS($to, $text) {
3939
return $response;
4040
}
4141
}
42-
43-
?>

0 commit comments

Comments
 (0)