postmark-0.2.7: Library for postmarkapp.com HTTP Api

Safe HaskellSafe
LanguageHaskell98

Network.Api.Postmark.Settings

Contents

Synopsis

Settings types

type PostmarkApiToken = Text Source #

The Postmark “server token” which is sent via the X-Postmark-Server-Token HTTP header. You can find your server token under the “Credentials” tab on the Postmark website.

If you do not yet have a Postmark account, or if you want to send test emails that don't actually get delivered, you may use postmarkTestToken.

https://postmarkapp.com/developer/api/overview#authentication

Settings construction

postmarkHttp :: PostmarkApiToken -> PostmarkSettings Source #

Constructs Postmark settings using the HTTP protocol and your API token.

HTTPS is recommended instead (postmarkHttps).

postmarkHttps :: PostmarkApiToken -> PostmarkSettings Source #

Constructs Postmark settings using the HTTPS protocol and your API token.

Using the test token

postmarkTestToken :: PostmarkApiToken Source #

An API token that you can use when you want to send test emails that don't actually get delivered to the recipient.

https://postmarkapp.com/developer/api/overview#authentication

postmarkHttpTest :: PostmarkSettings Source #

Postmark settings using the HTTP protocol and the test API token (postmarkTestToken).

HTTPS is recommended instead (postmarkHttpsTest).

postmarkHttpsTest :: PostmarkSettings Source #

Postmark settings using the HTTPS protocol and the test API token (postmarkTestToken).