mailjet / mailjet-apiv3-go

[API v3] Official Mailjet API v3 Go wrapper
https://dev.mailjet.com
MIT License
86 stars 31 forks source link

Add RequestOptions to SendMail and SendMailV31 #64

Closed dselim closed 2 years ago

dselim commented 4 years ago

These changes allow the use of arbitrary request options when using Client#SendMail and Client#SendMailV31.

Also adds a WithContext factory function which creates a RequestOptions that sets the request context.