sendinblue / APIv3-nodejs-library

SendinBlue's API v3 Node.js Library
ISC License
101 stars 47 forks source link

TypeError: SibApiV3Sdk.SMTPApi is not a constructor #89

Closed rohanmathewalex closed 3 years ago

rohanmathewalex commented 3 years ago

errooorr

rohanmathewalex commented 3 years ago

sendinblue email1 sendinblue-email2

Here in this code i am tryin to do Send a transactional email containing dynamic contact attributes and transactional parameters. so params i am sending here as a function but when i run the code i am getting atypoe error as shown above. does anyone know how to solve it?

syffs commented 3 years ago

@rohanmathewalex just got that error as well

Take a look at the doc: in short, it seems SMTPApi was renamed to TransactionalEmailsApi

shubhamUpadhyayInBlue commented 3 years ago

Hi @rohanmathewalex

As @syffs has correctly pointed out that the name has been changed in the major release v8.0.0. Please refer the doc incase of any doubt.

Thanks!

timnqp commented 1 year ago

@syffs Hey thanks! @shubhamUpadhyayInBlue I was getting the same issue as well by reading one of your tutorials Maybe someone from SIB can update this tutorial as well?

shubhamUpadhyayInBlue commented 1 year ago

Sure @timnqp I will raise the request for it.