semd SMS fix
This commit is contained in:
@@ -137,7 +137,7 @@ abstract class BaseController extends Controller
|
|||||||
$password = substr( str_shuffle(sha1(rand() . time()) . $chars ), 0, $length );
|
$password = substr( str_shuffle(sha1(rand() . time()) . $chars ), 0, $length );
|
||||||
return $password;
|
return $password;
|
||||||
}
|
}
|
||||||
public function sendSMS($to_number, $sms_message):string{
|
public function sendSMS_twillo($to_number, $sms_message):string{
|
||||||
|
|
||||||
// Find your Account SID and Auth Token at twilio.com/console
|
// Find your Account SID and Auth Token at twilio.com/console
|
||||||
// and set the environment variables. See http://twil.io/secure
|
// and set the environment variables. See http://twil.io/secure
|
||||||
@@ -155,7 +155,7 @@ abstract class BaseController extends Controller
|
|||||||
);
|
);
|
||||||
return $message->body;
|
return $message->body;
|
||||||
}
|
}
|
||||||
public function sendSMS_OLD($to_number, $sms_message):string{
|
public function sendSMS($to_number, $sms_message):string{
|
||||||
$API_KEY ="TLYsgMTZBeasJHHimcWXG1QPHmjH7FPwnbKwiqTEwGCu6TrK0v13hCn8N6SYZp";
|
$API_KEY ="TLYsgMTZBeasJHHimcWXG1QPHmjH7FPwnbKwiqTEwGCu6TrK0v13hCn8N6SYZp";
|
||||||
$BASE_URL = "https://api.ng.termii.com";
|
$BASE_URL = "https://api.ng.termii.com";
|
||||||
log_message('error', "SMS TO API---=>". $to_number);
|
log_message('error', "SMS TO API---=>". $to_number);
|
||||||
|
|||||||
Reference in New Issue
Block a user