File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,27 @@ def send(self, **kwargs):
145
145
:param dict substitution_data: Corresponds to substitutions in
146
146
html/text content. See `substitutions reference
147
147
<https://www.sparkpost.com/docs/substitutions-reference>`_.
148
- :param dict attachments: Corresponds to attachments.
149
- See `Attachment Attributes reference
150
- <https://developers.sparkpost.com/api/#/reference/transmissions>`_.
151
- Replace `data` by `filename` if you want the library to perform
152
- the base64 conversion. Example: `"filename": "/full/path/test.txt"`
148
+ :param attachments: List of dicts. For example:
149
+
150
+ .. code-block:: python
151
+
152
+ dict(
153
+ type='application/pdf',
154
+ name='document.pdf',
155
+ data='base64 encoded string'
156
+ )
157
+
158
+ Replace `data` with `filename` if you want the library to perform
159
+ the base64 conversion. For example:
160
+
161
+ .. code-block:: python
162
+
163
+ dict(
164
+ type='application/pdf',
165
+ name='document.pdf',
166
+ filename='/full/path/to/document.pdf'
167
+ )
168
+
153
169
:param str start_time: Delay generation of messages until this
154
170
datetime. Format YYYY-MM-DDTHH:MM:SS+-HH:MM. Example:
155
171
'2015-02-11T08:00:00-04:00'.
You can’t perform that action at this time.
0 commit comments