1
0
Fork 0
mirror of synced 2024-09-29 17:01:37 +13:00

Set $from to use env variable + update ref link

This commit is contained in:
Aditya Oberai 2022-07-12 22:03:54 +05:30 committed by GitHub
parent f63c1c95fe
commit 313fd5582a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@ namespace Appwrite\Auth\Phone;
use Appwrite\Auth\Phone; use Appwrite\Auth\Phone;
// Reference Material // Reference Material
// https://dashboard.nexmo.com/getting-started/sms // https://developer.vonage.com/api/sms
class Vonage extends Phone class Vonage extends Phone
{ {
@ -23,7 +23,6 @@ class Vonage extends Phone
public function send(string $from, string $to, string $message): void public function send(string $from, string $to, string $message): void
{ {
$to = ltrim($to, '+'); $to = ltrim($to, '+');
$from = "Appwrite";
$headers = ['Content-Type: application/x-www-form-urlencoded']; $headers = ['Content-Type: application/x-www-form-urlencoded'];
$this->request( $this->request(