2016-01-19 09:55:13 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
|
|
{% from "components/api-key.html" import api_key %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-08 09:23:51 +00:00
|
|
|
|
New API key – GOV.UK Notify
|
2016-01-19 09:55:13 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-07 12:56:30 +01:00
|
|
|
|
<h1 class="heading-large">
|
|
|
|
|
|
New API key
|
|
|
|
|
|
</h1>
|
2016-01-19 09:55:13 +00:00
|
|
|
|
|
2016-09-07 12:56:30 +01:00
|
|
|
|
<p>
|
|
|
|
|
|
Copy your key to somewhere safe. You won’t be able to see it again
|
|
|
|
|
|
once you leave this page.
|
|
|
|
|
|
</p>
|
2016-01-19 09:55:13 +00:00
|
|
|
|
|
2016-10-07 10:59:32 +01:00
|
|
|
|
<div class="bottom-gutter-2">
|
2016-02-05 10:25:49 +00:00
|
|
|
|
|
2016-10-07 10:59:32 +01:00
|
|
|
|
{{ api_key(
|
|
|
|
|
|
'{}-{}-{}'.format(key_name, service_id, secret),
|
|
|
|
|
|
'API key'
|
|
|
|
|
|
) }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ page_footer(
|
|
|
|
|
|
secondary_link=url_for('.api_keys', service_id=current_service.id),
|
|
|
|
|
|
secondary_link_text='Back to API keys'
|
|
|
|
|
|
) }}
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class='heading-medium'>For older API clients</h2>
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
|
If the client you’re using needs a service ID and an API key,
|
|
|
|
|
|
use these values:
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="bottom-gutter">
|
|
|
|
|
|
{{ api_key(service_id, 'Service ID', thing='service ID') }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{{ api_key(secret, 'API key') }}
|
2016-01-19 09:55:13 +00:00
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|