From fec0bf002a742f56011d61c45d715672e5033886 Mon Sep 17 00:00:00 2001 From: Kheersagar patel <75828030+kheersagarpatel@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:47:05 +0530 Subject: [PATCH] Update README.md Update README.md It will fix tyrescript docs --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e33c5d9..43f89ad 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,10 @@ apiInstance.sendTransacEmail(sendSmtpEmail).then(function (data) { ------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------- Typescript supported with v2.1.1 -------------------------------------- ------------------------------------------------------------------------------------------------------------------------- -const brevo = require('@getbrevo/brevo'); +import * as brevo from "@getbrevo/brevo"; let apiInstance = new brevo.TransactionalEmailsApi(); -let apiKey = apiInstance.authentications['apiKey']; -apiKey.apiKey = 'YOUR API KEY'; +apiInstance.setApiKey(brevo.TransactionalEmailsApiApiKeys.apiKey, "YOUR API KEY"); let sendSmtpEmail = new brevo.SendSmtpEmail();