@@ -18,7 +18,7 @@ class ReveSmsProvider extends BaseProvider
1818 protected function getClientConfig (): array
1919 {
2020 return [
21- 'base_uri ' => $ this ->config ['base_uri ' ] ?? 'https ://smpp .revesms.com:7790 ' ,
21+ 'base_uri ' => $ this ->config ['base_uri ' ] ?? 'http ://apismpp .revesms.com ' ,
2222 'timeout ' => $ this ->config ['timeout ' ] ?? 30 ,
2323 'verify ' => $ this ->config ['verify_ssl ' ] ?? false ,
2424 ];
@@ -36,16 +36,16 @@ protected function validateConfig(): void
3636
3737 protected function sendRequest (TextifyMessage $ message ): array
3838 {
39- $ query = [
39+ $ params = [
4040 'apikey ' => $ this ->config ['apikey ' ],
4141 'secretkey ' => $ this ->config ['secretkey ' ],
4242 'callerID ' => $ message ->getFrom () ?? $ this ->config ['sender_id ' ] ?? 'REVESMS ' ,
4343 'toUser ' => $ this ->formatPhoneNumber ($ message ->getTo ()),
4444 'messageContent ' => $ message ->getMessage (),
4545 ];
4646
47- $ response = $ this ->client ->get ('/sendtext ' , [
48- 'query ' => $ query ,
47+ $ response = $ this ->client ->post ('/sendtext ' , [
48+ 'form_params ' => $ params ,
4949 ]);
5050
5151 return json_decode ($ response ->getBody ()->getContents (), true );
@@ -134,7 +134,7 @@ public function getBalance(): float
134134 {
135135 try {
136136 // Get balance URI from config or use default
137- $ balanceUri = $ this ->config ['balance_uri ' ] ?? 'https ://smpp .revesms.com ' ;
137+ $ balanceUri = $ this ->config ['balance_uri ' ] ?? 'http ://apismpp .revesms.com ' ;
138138
139139 // Create a separate client for balance API if needed
140140 $ balanceClient = new \GuzzleHttp \Client ([
0 commit comments