Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function Sendinvite($to,$message) {
- $accountSid = env('TWILIO_ACCOUNT_SID');
- $authToken = env('TWILIO_AUTH_TOKEN');
- $twilioNumber = env('TWILIO_NUMBER');
- $client = new Client($accountSid, $authToken);
- try {
- $client->account->messages->create(
- $to,
- [
- "body" => $message,
- "from" => $twilioNumber
- ]
- );
- } catch (TwilioException $e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement