Skip to content

Push email with a template #135

Description

@paulsUsername

I am not seeing anywhere to send a push targeting an email template. From the docs I can see it should be something like this:

"message": {
        "template": {
         "template_id": "b740afd6-36my-email-template",
         "fields": {
            "title": "Test Title",
            "description": "This a description",
            "map": "xxx",
            "recording": "xxx",
            "distance": "xxx",
            "elevation": "xxx",
            "elapsed_time": "xxx",
         }
      }
    }

In email payload I just see this:

```
 def email(bypass_opt_in_level: nil, html_body: nil, message_type: required('message_type'),
            plaintext_body: required('plaintext_body'), reply_to: required('reply_to'),
            sender_address: required('sender_address'), sender_name: required('sender_name'),
            subject: required('subject'))
    fail ArgumentError, 'Message type must not be nil' if message_type.nil?
    fail ArgumentError, 'Plaintext Body must not be nil' if plaintext_body.nil?
    fail ArgumentError, 'Reply To must not be nil' if reply_to.nil?
    fail ArgumentError, 'Sender address must not be nil' if sender_address.nil?
    fail ArgumentError, 'Sender name must not be nil' if sender_name.nil?
    fail ArgumentError, 'Subject must not be nil' if subject.nil?
    compact_helper({
        bypass_opt_in_level: bypass_opt_in_level,
        html_body: html_body,
        message_type: message_type,
        plaintext_body: plaintext_body,
        reply_to: reply_to,
        sender_address: sender_address,
        sender_name: sender_name,
        subject: subject
      })
  end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions