File: preview_template.py

package info (click to toggle)
python-sparkpost 1.3.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: python: 2,528; makefile: 31; sh: 10
file content (9 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
from sparkpost import SparkPost

sp = SparkPost()
sub_data = {
    'first_name': 'John',
    'last_name': 'Doe'
}
template = sp.templates.preview('template_id', sub_data)
print(template)