[{"name":"SendGrid","comment":"\n\n\n# Email\n\n@docs Email, sendEmail, Error\n\n\n# API Key\n\nIn order to send email via SendGrid, you need an API key.\nTo do this signup for a SendGrid account.\n\nThen after you've logged in, click on the settings tab, then API Keys, and finally \"Create API Key\".\nYou'll get to choose if the API key has `Full Access`, `Restricted Access`, or `Billing Access`.\nFor this package it's best if you select restricted access and then set `Mail Send` to `Full Access` and leave everything else as `No Access`.\n\nOnce you've done this you'll be given an API key. Store it in a password manager or something for safe keeping. _You are highly recommended to not hard code the API key into your source code!_\n\n@docs ApiKey, apiKey\n\n\n# Email content\n\n@docs Content, textContent, htmlContent\n\n","unions":[{"name":"ApiKey","comment":" A SendGrid API key. In order to user their API you must have one of these.\n","args":[],"cases":[]},{"name":"Content","comment":" The body of our email. This can either be plain text or html.\n","args":["a"],"cases":[]},{"name":"Error","comment":" Possible error codes we might get back when trying to send an email.\nSome are just normal HTTP errors, others are specific to the SendGrid API.\n","args":[],"cases":[["StatusCode400",["List.List SendGrid.ErrorMessage"]],["StatusCode401",["List.List SendGrid.ErrorMessage"]],["StatusCode403",["{ errors : List.List SendGrid.ErrorMessage403, id : Maybe.Maybe String.String }"]],["StatusCode413",["List.List SendGrid.ErrorMessage"]],["UnknownError",["{ statusCode : Basics.Int, body : String.String }"]],["NetworkError",[]],["Timeout",[]],["BadUrl",["String.String"]]]}],"aliases":[{"name":"Email","comment":" ","args":["a"],"type":"{ subject : String.Nonempty.Nonempty, content : SendGrid.Content a, to : List.Nonempty.Nonempty SendGrid.EmailAddress, cc : List.List SendGrid.EmailAddress, bcc : List.List SendGrid.EmailAddress, nameOfSender : String.String, emailAddressOfSender : SendGrid.EmailAddress }"}],"values":[{"name":"apiKey","comment":" Create an API key from a raw string.\n","type":"String.String -> SendGrid.ApiKey"},{"name":"htmlContent","comment":" Create an html body for an email.\nNote that this function expects Html._String_.Html as a parameter.\nTo create those you'll need to run `elm install zwilias/elm-html-string`.\n","type":"Html.String.Html a -> SendGrid.Content a"},{"name":"sendEmail","comment":" Send an email using the SendGrid API.\n","type":"(Result.Result SendGrid.Error () -> msg) -> SendGrid.ApiKey -> SendGrid.Email a -> Platform.Cmd.Cmd msg"},{"name":"textContent","comment":" Create a text body for an email.\n","type":"String.Nonempty.Nonempty -> SendGrid.Content a"}],"binops":[]}]