From 3853ddb8d7f336f99007b8e1b992b5fd329a9d71 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 31 Jan 2024 21:11:25 +1300 Subject: [PATCH] Fix telesign credential names --- src/Utopia/Messaging/Adapter/SMS/Telesign.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Utopia/Messaging/Adapter/SMS/Telesign.php b/src/Utopia/Messaging/Adapter/SMS/Telesign.php index e9c1674..586ac54 100644 --- a/src/Utopia/Messaging/Adapter/SMS/Telesign.php +++ b/src/Utopia/Messaging/Adapter/SMS/Telesign.php @@ -14,12 +14,12 @@ class Telesign extends SMSAdapter protected const NAME = 'Telesign'; /** - * @param string $username Telesign account username - * @param string $password Telesign account password + * @param string $customerId Telesign customer ID + * @param string $apiKey Telesign API key */ public function __construct( - private string $username, - private string $password + private string $customerId, + private string $apiKey ) { } @@ -51,7 +51,7 @@ protected function process(SMSMessage $message): array method: 'POST', url: 'https://rest-ww.telesign.com/v1/verify/bulk_sms', headers: [ - 'Authorization: Basic '.base64_encode("{$this->username}:{$this->password}"), + 'Authorization: Basic '.base64_encode("{$this->customerId}:{$this->apiKey}"), ], body: \http_build_query([ 'template' => $message->getContent(),