Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this sdk have methods for creating and updating templates? #418

Open
magick93 opened this issue Aug 7, 2024 · 1 comment
Open

Does this sdk have methods for creating and updating templates? #418

magick93 opened this issue Aug 7, 2024 · 1 comment

Comments

@magick93
Copy link

magick93 commented Aug 7, 2024

Hello

I see the mailgun api has methods related to creating and updating of templates.

Does this sdk provide related functionality?

Thanks

@olexandr-mazepa
Copy link
Collaborator

Yes it does.
Mentioned API is accessible under domain.domainTemplates

const mailgun = new Mailgun(FormData);
const mg = mailgun.domains.domainTemplates.create(
  domain: string,
  data: DomainTemplateData
)

By unknown reason examples are missed in readme file, so you can use class below to see available methods and their signatures:
https://github.com/mailgun/mailgun.js/blob/master/lib/Classes/Domains/domainsTemplates.ts#L158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants