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

NewMailgun - publicApiKey #42

Closed
EtienneBruines opened this issue Jun 19, 2015 · 3 comments
Closed

NewMailgun - publicApiKey #42

EtienneBruines opened this issue Jun 19, 2015 · 3 comments
Assignees
Labels

Comments

@EtienneBruines
Copy link

I suppose the function

func NewMailgun(domain, apiKey, publicApiKey string) Mailgun {
    m := MailgunImpl{domain: domain, apiKey: apiKey, publicApiKey: publicApiKey}
    return &m
}

has a publicApiKey because the API v2 uses it? I cannot find any reference to it at the documentation / website of Mailgun, and leaving it blank enables me to send the e-mail anyway.

What's its use? And why is it still there?

@mbanzon
Copy link
Collaborator

mbanzon commented Jun 20, 2015

Have a look at the documentation here. The advice for these types of API calls is to use the public API key.

@mbanzon mbanzon self-assigned this Jul 9, 2016
@mbanzon mbanzon closed this as completed Jul 9, 2016
@discordianfish
Copy link

Same here, very confusing. So where is the public API key? I can't find that in my admin interface either.

@mbanzon
Copy link
Collaborator

mbanzon commented Oct 23, 2016

This issue has been resolved. The public API key is used when validating email addresses. Please see the documentation linked. It seems that the public API key is linked to the account and not the domains - it can be seen on the dashboard right hand side (currently).

screen shot 2016-10-23 at 07 52 30

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

No branches or pull requests

3 participants