2016-03-15 06:53:06 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
{% from "components/email-message.html" import email_message %}
|
|
|
|
|
|
{% from "components/sms-message.html" import sms_message %}
|
2016-04-18 11:10:47 +01:00
|
|
|
|
{% from "components/api-key.html" import api_key %}
|
2016-03-15 06:53:06 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-03-21 14:31:01 +00:00
|
|
|
|
API integration – GOV.UK Notify
|
2016-03-15 06:53:06 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
|
|
|
|
|
<h1 class="heading-large">
|
2016-04-18 11:10:47 +01:00
|
|
|
|
API info
|
2016-03-15 06:53:06 +00:00
|
|
|
|
</h1>
|
|
|
|
|
|
|
2016-04-18 11:10:47 +01:00
|
|
|
|
{% if 'email' == template.template_type %}
|
|
|
|
|
|
{{ email_message(
|
|
|
|
|
|
template.formatted_subject_as_markup,
|
|
|
|
|
|
template.formatted_as_markup,
|
|
|
|
|
|
) }}
|
|
|
|
|
|
{% elif 'sms' == template.template_type %}
|
|
|
|
|
|
<div class="grid-row">
|
|
|
|
|
|
<div class="column-two-thirds">
|
2016-03-15 06:53:06 +00:00
|
|
|
|
{{ sms_message(
|
|
|
|
|
|
template.formatted_as_markup,
|
|
|
|
|
|
) }}
|
2016-04-18 11:10:47 +01:00
|
|
|
|
</div>
|
2016-03-15 06:53:06 +00:00
|
|
|
|
</div>
|
2016-04-18 11:10:47 +01:00
|
|
|
|
{% endif %}
|
2016-03-15 06:53:06 +00:00
|
|
|
|
|
2016-04-18 11:10:47 +01:00
|
|
|
|
<div class="bottom-gutter">
|
|
|
|
|
|
{{ api_key(template.id, name="Template ID", thing='template ID') }}
|
2016-03-15 06:53:06 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2016-04-18 11:10:47 +01:00
|
|
|
|
{% if personalisation %}
|
|
|
|
|
|
<h2 class="heading-small">Personalisation (all fields are required)</h2>
|
|
|
|
|
|
{{ personalisation|syntax_highlight_json }}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
2016-03-15 06:53:06 +00:00
|
|
|
|
<p>
|
2016-03-21 14:31:01 +00:00
|
|
|
|
<br />See the <a href="{{ url_for(".documentation") }}">developer documentation</a> for full details.
|
2016-03-15 06:53:06 +00:00
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|