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

Templates API #832

Closed
Radiergummi opened this issue Jul 12, 2022 · 4 comments
Closed

Templates API #832

Radiergummi opened this issue Jul 12, 2022 · 4 comments

Comments

@Radiergummi
Copy link

The templates API doesn't seem to be implemented in the SDK, which is a bit unfortunate for my use case. This would be easier if the Mailgun instance exposed a method to perform manual API requests, so we could simply implement the calls ourselves, but there doesn't seem to be a way to get a hold of the HTTP client - thus forcing us to create a separate client with separate credentials to work with message templates.

Are there any plans to add support for the templates API?

@oleksandr-mykhailenko
Copy link
Collaborator

Hello @Radiergummi this one is on discussion right now. When we have an answer, I will post it here. Your request was passed to the department of development

@Radiergummi
Copy link
Author

Hi @oleksandr-mykhailenko, got any news on this? If adding full support for the templates API is too much work and doesn't fit on the backlog currently, maybe just exposing the private HTTP client instance (public function getClient(): HttpClientInterface) would make our life way easier and allow for customers to implement endpoint support on their own. I could also open a PR for this, if you'd like?

@oleksandr-mykhailenko
Copy link
Collaborator

Hello @Radiergummi
I do not have an answer about templates API yet, but about your request for exposing client, sounds good for me. I think, we will implement such feature soon (maybe this week even). So I will let you know about this

@oleksandr-mykhailenko
Copy link
Collaborator

Hello @Radiergummi
We added class for working with httpClient if you want to make customized requests. Here is link for usage https://github.com/mailgun/mailgun-php#custom-http-request-to-the-api

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