We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Thanks for a great library. I can't seem to find any info on authentication, is this supported?
As an example, I'm trying to implement a basic form post with user authentication for this service: https://documentation.mailgun.com/api-sending.html#examples
Are there any docs or examples about how to use the curl equivalent of
curl -s --user 'api:YOUR_API_KEY' https://domain.com -F from='User <mailgun@YOUR_DOMAIN_NAME>'
The text was updated successfully, but these errors were encountered:
Just pass the "authorization" header as an option:
{authorization: 'Basic ' + Buffer(username + ':' + password).toString('base64')}
Sorry, something went wrong.
No branches or pull requests
Thanks for a great library. I can't seem to find any info on authentication, is this supported?
As an example, I'm trying to implement a basic form post with user authentication for this service:
https://documentation.mailgun.com/api-sending.html#examples
Are there any docs or examples about how to use the curl equivalent of
curl -s --user 'api:YOUR_API_KEY' https://domain.com -F from='User <mailgun@YOUR_DOMAIN_NAME>'
The text was updated successfully, but these errors were encountered: