Support Forums - Classified Ads Script Osclass

Osclass plugin support => SMS Notification and Verification Plugin => Topic started by: moohmd on November 03, 2019, 05:53:08 PM

Title: Add another message gateway
Post by: moohmd on November 03, 2019, 05:53:08 PM
Hello, I would like to use the local SMS gateway in my country because all other gateways are delayed in sending messages
The portal link I want to use is https://smsgw.net
Is there a way to use it?
Title: Re: Add another message gateway
Post by: MB Themes on November 06, 2019, 03:47:39 PM
@moohmd
First you must integrate it. Check functions.php for details about integration of other gateways.
Title: Re: Add another message gateway
Post by: moohmd on November 07, 2019, 06:26:10 PM
This means it is possible to add another sms gateway in the functions.php file
Title: Re: Add another message gateway
Post by: MB Themes on November 08, 2019, 09:38:53 AM
Correct.
Title: Re: Add another message gateway
Post by: Smithtech on June 02, 2022, 10:27:21 AM
Hello, I would like to use the local SMS gateway in my country because all other gateways are delayed in sending messages
The portal link I want to use is https://smsgw.net
Is there a way to use it?


Please, I also want to integrate this SMS gateway: https://www.mnotify.com/ . Is that possible please?
Title: Re: Add another message gateway
Post by: MB Themes on June 02, 2022, 05:11:38 PM
Yes it is possible.
Title: Re: Add another message gateway
Post by: Smithtech on June 02, 2022, 11:44:37 PM
Ues it is possible.

Please, any assistance with that?
Title: Re: Add another message gateway
Post by: MB Themes on June 03, 2022, 08:52:54 AM
@support
No, development is needed, either you are able to modify some of existing gateways to new one or you hire developer to implement new one.
Title: Re: Add another message gateway
Post by: Smithtech on June 03, 2022, 02:04:26 PM
For instance, this is the implementation for RING CAPTCHA

Code: [Select]
// RING CAPTCHA
  } else if ($provider == 'ringcaptcha') {
    $data = array('api_key' => sms_param('ringcaptcha_api_key'), 'phone' => $phone_number, 'message' => $message);
    $string = http_build_query($data, '', '&');

    $url = 'https://api.ringcaptcha.com/' . sms_param('ringcaptcha_app_key') . '/sms';
    $ch = curl_init($url);

    curl_setopt($ch, CURLOPT_POST, true);

    curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('application/x-www-url-encoded; charset=utf-8'));
    $response = curl_exec($ch);
    $error = (curl_errno($ch) ? curl_error($ch) : false);

    curl_close($ch);
 

Please, how can we edit this with the documentation provided here? https://readthedocs.mnotify.com/