Merge pull request #382 from alphagov/docs-tweaks

Some proposed changes to the docs
This commit is contained in:
catherineheywood
2016-04-06 09:07:24 +01:00

View File

@@ -1,14 +1,14 @@
About this document
==========================
This document is for developers, technical architects, and service managers who want to use the GOV.UK Notify platform to send notifications to users of their digital service.
This document is for developers, technical architects, and service managers who want to use the GOV.UK Notify platform to send notifications to users of their digital service.
About GOV.UK Notify
====================
GOV.UK Notify is a cross-government platform, currently in beta, that lets government services and agencies [?] send notifications by sms or email.
GOV.UK Notify is a cross-government platform, currently in beta, that lets government services and agencies [?] send notifications by sms or email.
There are two ways to send notifications:
* use the GOV.UK Notify interface
* use the [GOV.UK Notify](https://www.notifications.service.gov.uk/) web application
* integrate your web applications or back office systems with the GOV.UK Notify API
To find out more about GOV.UK Notify, see the [Government as a Platform](https://governmentasaplatform.blog.gov.uk/) blog.
@@ -17,7 +17,7 @@ Before you start
==================
To use GOV.UK Notify, you need:
* an email address from a local or central government organisation
* a mobile number for 2-factor authentication
@@ -25,24 +25,24 @@ To use GOV.UK Notify, you need:
Quick start guide to GOV.UK Notify
===================================
To get started:
To get started:
1. Register for a [GOV.UK Notify](https://www.notifications.service.gov.uk/) account. You will need your mobile phone for 2-factor authentication.
2. Add a new service.
2. Add a new service.
At first your service will be in trial mode. When youre fully integrated and ready to go live, send a request to the GOV.UK Notify team.
At first your service will be in trial mode. In trial mode you will only be able to send test sms and email notifications to your own mobile number or email address. When youre fully integrated and ready to go live, send a request to the GOV.UK Notify team.
3. Add a template so you can send sms and email notifications. You can personalise the template using double brackets for replaceables. For example:
3. Add a template so you can send sms and email notifications. You can personalise the template using double brackets for replaceables. For example:
Dear ((name))
Your ((item)) will expire on ((date)).
Your ((item)) will expire on ((date)).
4. Upload a csv file containing the list of recipients and replaceables.
4. Upload a csv file containing a header row that corresponds to the replaceables in your template, and data rows with the values for substituting the replaceables.
5. Send an sms or email notification.
6. Create a new API key. This will be used to connect to the API.
You can provide all your developers with test keys so they can experiment in the Sandbox environment. But keep the number of keys for real integrations to a minimum number of people on your team.
You can provide all your developers with test keys so they can experiment in the Sandbox environment. But keep the number of keys for real integrations to a minimum number of people on your team.
@@ -50,16 +50,17 @@ To get started:
Integrate the GOV.UK API into your service
============================================
A client (on github) will make calls to GOV.UK Notify on your behalf.
A client (on github) will make calls to GOV.UK Notify on your behalf.
You can either:
* use a client library provided by Notify - there is currently 1 python library but more will be added in different languages
* develop your own [???]
To make an IPA call to a client you need:
* the service ID - this is aviailable under API keys on the GOV.UK Notify interface
To make an API call to a client you need:
* the service ID - this is aviailable under API keys on the [GOV.UK Notify](https://www.notifications.service.gov.uk/) web application
* an API key - this is a secret key so save it somewhere safe; do not commit API keys to public source code repositories
API integration
------------------
@@ -72,7 +73,7 @@ You can use the API to:
* retrieve one or more notifications
* retrieve all notifications
To send a text notification:
To send a text notification:
```
POST /notifications/sms
```
@@ -117,7 +118,7 @@ GET /notifications/{id}
}
}
```
where status is the the status of the notification.
where status is the the status of the notification.
To get the status of all text notifications: [do we want this? why do we only explain how to get text notifciations, do we want to explain how to do the same for email notifications?]
@@ -128,7 +129,7 @@ To get the status of all text notifications: [do we want this? why do we only ex
Functional testing
---------------------
[Some info in Rosalies notes.]
Security
----------