You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/documentation/client_docs/_python.md
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -84,15 +84,15 @@ If a template has placeholder fields for personalised information such as name o
84
84
```python
85
85
personalisation={
86
86
"first_name": "Amala",
87
-
"appointment_date": "2018-01-01 at 01:00PM",
87
+
"appointment_date": "1 January 2018 at 01:00PM",
88
88
},
89
89
```
90
90
91
91
You can leave out this argument if a template does not have any placeholder fields for personalised information.
92
92
93
93
##### reference (optional)
94
94
95
-
A unique identifier you can create if necessary. This reference identifies a single unique message or a batch of messages. It must not contain any personal information such as name or postal address. For example:
95
+
An identifier you can create if necessary. This reference identifies a single unique message or a batch of messages. It must not contain any personal information such as name or postal address. For example:
@@ -213,7 +213,7 @@ You can leave out this argument if a template does not have any placeholder fiel
213
213
214
214
##### reference (optional)
215
215
216
-
A unique identifier you can create if necessary. This reference identifies a single unique email or a batch of emails. It must not contain any personal information such as name or postal address. For example:
216
+
An identifier you can create if necessary. This reference identifies a single unique email or a batch of emails. It must not contain any personal information such as name or postal address. For example:
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 2018-01-01 at 01:00PM.\r\n\r\n Here is a link to your invitation document:\r\nhttps://documents.service.gov.uk/d/YlxDzgNUQYi1Qg6QxIpptA/th46VnrvRxyVO9div6f7hA?key=R0VDmwJ1YzNYFJysAIjQd9yHn5qKUFg-nXHVe3Ioa3A\r\n\r\nPlease bring the invite with you to the appointment.\r\n\r\nYours,\r\nPigeon Affairs Bureau", # required string - message content - see that the link to document is embedded in the message content
442
+
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 1 January 2018 at 1:00pm.\r\n\r\n Here is a link to your invitation document:\r\nhttps://documents.service.gov.uk/d/YlxDzgNUQYi1Qg6QxIpptA/th46VnrvRxyVO9div6f7hA?key=R0VDmwJ1YzNYFJysAIjQd9yHn5qKUFg-nXHVe3Ioa3A\r\n\r\nPlease bring the invite with you to the appointment.\r\n\r\nYours,\r\nPigeon Affairs Bureau", # required string - message content - see that the link to document is embedded in the message content
443
443
"from_email": "pigeon.affairs.bureau@notifications.service.gov.uk", # required string - "FROM" email address, not a real inbox
A unique identifier you can create if necessary. This reference identifies a single unique letter or a batch of letters. It must not contain any personal information such as name or postal address. For example:
556
+
An identifier you can create if necessary. This reference identifies a single unique letter or a batch of letters. It must not contain any personal information such as name or postal address. For example:
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 2018-01-01 at 01:00PM.\r\n\r\nPlease bring:\r\n\n\n* passport\n* utility bill\n* other id\r\n\r\nYours,\r\nPigeon Affairs Bureau", # required string - letter content
572
+
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 1 January 2018 at 1:00pm.\r\n\r\nPlease bring:\r\n\n\n* passport\n* utility bill\n* other id\r\n\r\nYours,\r\nPigeon Affairs Bureau", # required string - letter content
@@ -615,7 +615,7 @@ with open("path/to/pdf_file.pdf", "rb") as pdf_file:
615
615
616
616
##### reference (required)
617
617
618
-
A unique identifier you create. This reference identifies a single unique precompiled letter or a batch of precompiled letters. It must not contain any personal information such as name or postal address.
618
+
An identifier you create. This reference identifies a single unique precompiled letter or a batch of precompiled letters. It must not contain any personal information such as name or postal address.
"body": "Hi Amala, your appointment is on 2018-01-01 at 01:00PM", # required string - body of notification
715
+
"body": "Hi Amala, your appointment is on 1 January 2018 at 1:00pm", # required string - body of notification
716
716
"subject": "Your upcoming pigeon registration appointment", # required string for email - subject of email
717
717
"created_at": "2024-05-17 15:58:38.342838", # required string - date and time notification created
718
718
"created_by_name": "Charlie Smith", # optional string - name of the person who sent the notification if sent manually
@@ -827,7 +827,7 @@ You can leave out this argument to ignore this filter.
827
827
828
828
##### reference (optional)
829
829
830
-
A unique identifier you can create if necessary. This reference identifies a single unique message or a batch of messages. It must not contain any personal information such as name or postal address. For example:
830
+
An identifier you can create if necessary. This reference identifies a single unique message or a batch of messages. It must not contain any personal information such as name or postal address. For example:
831
831
832
832
```python
833
833
reference="your reference"# optional string - reference you provided when sending the message
@@ -882,7 +882,7 @@ If the request to the client is successful, the client returns a `dict`.
882
882
"id": "f33517ff-2a88-4f6e-b855-c550268ce08a", # required string - template ID
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 2018-01-01 at 01:00PM.\r\n\r\n Here is a link to your invitation document:\r\n\n\n* passport\n* utility bill\n* other id\r\n\r\nPlease bring the invite with you to the appointment.\r\n\r\nYours,\r\nPigeon Affairs Bureau",
1246
+
"body": "Dear Amala\r\n\r\nYour pigeon registration appointment is scheduled for 1 January 2018 at 1:00pm.\r\n\r\n Here is a link to your invitation document:\r\n\n\n* passport\n* utility bill\n* other id\r\n\r\nPlease bring the invite with you to the appointment.\r\n\r\nYours,\r\nPigeon Affairs Bureau",
1247
1247
# required string for emails, empty for sms and letters - html version of the email body
1248
1248
"html": '<p style="Margin: 0 0 20px 0; font-size: 19px; line-height: 25px; color: #0B0C0C;">Dear Amala</p> ... [snippet truncated for readability]',
1249
1249
# required string for email and letter - subject of email / heading of letter
0 commit comments