Skip to content

Commit

Permalink
sendmysms gateway integration done
Browse files Browse the repository at this point in the history
  • Loading branch information
arif98741 committed Sep 30, 2024
1 parent 0a06b42 commit f52ac47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ echo $status = $sender->send();
| OnnoRokomSMS | userName, userPassword, type, maskName, campaignName | - | Done | not tested yet in live | - |
| QuickSms | api_key, senderid, type,scheduledDateTime | - | Done | not tested yet in live | - |
| RedmoITSms | api_token, sender_id | - | Support closed | - |
| RedmoITSms | api_token, sender_id | - | Support closed | - |
| SendMySms | user, closed | - | Done | tested in live |
| SmartLabSMS | user, password, sender | - | Done | - | - |
| Sms4BD | publickey, privatekey, type,sender, delay | - | Done | - | - |
| SmsBangladesh | user, password, from | - | Done | - | - |
Expand Down
11 changes: 2 additions & 9 deletions src/Provider/SendMySms.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Last Modified: 09/16/24, 12:14 AM
* Last Modified: 10/01/24, 03:10 AM
* Copyright (c) 2024
* -created by Ariful Islam
* -All Rights Preserved By
Expand All @@ -18,7 +18,6 @@

/**
* Sendmysms Class
* api endpoint https://sendmysms.net/api.php
*/
class SendMySms extends AbstractProvider
{
Expand Down Expand Up @@ -54,12 +53,6 @@ public function sendRequest()
'msg' => $text,
];

if (is_array($number)) {
// $query['to'] = ['01733499574', '01750840217'];
}



$requestObject = new Request($this->apiEndpoint, $query, $queue, [], $queueName, $tries, $backoff);
$requestObject->setFormParams($query);
$response = $requestObject->post();
Expand All @@ -84,7 +77,7 @@ public function errorException()
throw new ParameterException('user key is absent in configuration');
}
if (!array_key_exists('key', $this->senderObject->getConfig())) {
throw new ParameterException('key key is absent in configuration');
throw new ParameterException('key is absent in configuration');
}

}
Expand Down

0 comments on commit f52ac47

Please sign in to comment.