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
@@ -45,21 +45,21 @@ For more information please see the [Installing Packages](https://packaging.pyth
45
45
<aname="getting-started"id="getting-started"></a>
46
46
# Getting Started
47
47
## Obtaining your API Key and SocketLabs ServerId number
48
-
In order to get started, you'll need to enable the Injection API feature in the [SocketLabs Control Panel](https://cp.socketlabs.com).
49
-
Once logged in, navigate to your SocketLabs server's dashboard (if you only have one server on your account you'll be taken here immediately after logging in).
50
-
Make note of your 4 or 5 digit ServerId number, as you'll need this along with
51
-
your API key in order to use the Injection API.
48
+
In order to get started, you'll need to enable the Injection API feature in the [SocketLabs Control Panel](https://cp.socketlabs.com).
49
+
Once logged in, navigate to your SocketLabs server's dashboard (if you only have one server on your account you'll be taken here immediately after logging in).
50
+
Make note of your 4 or 5 digit ServerId number, as you'll need this along with
51
+
your API key in order to use the Injection API.
52
52
53
-
To enable the Injection API, click on the "For Developers" dropdown on the top-level navigation, then choose the "Configure HTTP Injection API" option.
53
+
To enable the Injection API, click on the "For Developers" dropdown on the top-level navigation, then choose the "Configure HTTP Injection API" option.
54
54
Once here, you can enable the feature by choosing the "Enabled" option in the
55
-
dropdown. Enabling the feature will also generate your API key, which you'll
56
-
need (along with your ServerId) to start using the API. Be sure to click the
55
+
dropdown. Enabling the feature will also generate your API key, which you'll
56
+
need (along with your ServerId) to start using the API. Be sure to click the
57
57
"Update" button to save your changes once you are finished.
58
58
59
59
60
60
## Basic Message
61
-
A basic message is an email message like you'd send from a personal email client such as Outlook.
62
-
A basic message can have many recipients, including multiple To addresses, CC addresses, and even BCC addresses.
61
+
A basic message is an email message like you'd send from a personal email client such as Outlook.
62
+
A basic message can have many recipients, including multiple To addresses, CC addresses, and even BCC addresses.
63
63
You can also send a file attachment in a basic message.
64
64
65
65
```python
@@ -78,7 +78,7 @@ message.plain_text_body = "This is the Plain Text Body of my message.";
In order to demonstrate the many possible use cases for the SDK, we've provided
144
-
an assortment of code examples. These examples demonstrate many different
145
-
features available to the Injection API and SDK, including using templates
146
-
created in the [SocketLabs Email Designer](https://www.socketlabs.com/blog/introducing-new-email-designer/), custom email headers, sending
147
-
attachments, sending content that is stored in an HTML file, advanced bulk
143
+
In order to demonstrate the many possible use cases for the SDK, we've provided
144
+
an assortment of code examples. These examples demonstrate many different
145
+
features available to the Injection API and SDK, including using templates
146
+
created in the [SocketLabs Email Designer](https://www.socketlabs.com/blog/introducing-new-email-designer/), custom email headers, sending
147
+
attachments, sending content that is stored in an HTML file, advanced bulk
148
148
merging, and even pulling recipients from a datasource.
149
149
150
150
### [Basic send from SocketLabs Template](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/basic/basic_send_with_api_template.py)
151
-
This example demonstrates the sending of a piece of content that was created in the
151
+
This example demonstrates the sending of a piece of content that was created in the
152
152
SocketLabs Email Designer. This is also known as the [API Templates](https://www.socketlabs.com/blog/introducing-api-templates/) feature.
153
153
154
154
### [Basic send from HTML file](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/basic/basic_send_from_html_file.py)
155
-
This example demonstrates how to read in your HTML content from an HTML file
155
+
This example demonstrates how to read in your HTML content from an HTML file
156
156
rather than passing in a string directly.
157
157
158
158
### [Basic send with file attachment](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/basic/basic_send_with_attachment.py)
@@ -196,19 +196,19 @@ This example demonstrates the results of attempting to do a send with invalid re
196
196
This example demonstrates how to send a bulk message to multiple recipients.
197
197
198
198
### [Bulk send with merge data](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/bulk/bulk_send_from_data_source_with_merge.py)
199
-
This example demonstrates how to send a bulk message to multiple recipients with
199
+
This example demonstrates how to send a bulk message to multiple recipients with
200
200
unique merge data per recipient.
201
201
202
202
### [Bulk send with complex merge including attachments](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/bulk/bulk_send_complex.py)
203
-
This example demonstrates many features of the `BulkMessage()`, including
203
+
This example demonstrates many features of the `BulkMessage()`, including
204
204
adding multiple recipients, merge data, and adding an attachment.
205
205
206
206
### [Bulk send with recipients pulled from a datasource](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/bulk/bulk_send_with_ascii_charset_merge_data.py)
207
-
This example uses a mock repository class to demonstrate how you would pull
207
+
This example uses a mock repository class to demonstrate how you would pull
208
208
your recipients from a database and create a bulk mailing with merge data.
209
209
210
210
### [Bulk send with Ascii charset and special characters](https://github.com/socketlabs/socketlabs-python/blob/master/python-examples/bulk/bulk_send_with_ascii_charset_merge_data.py)
211
-
This example demonstrates how to send a bulk message with a specified character
211
+
This example demonstrates how to send a bulk message with a specified character
212
212
set and special characters.
213
213
214
214
### [Bulk send with Amp ](https://github.com/socketlabs/socketlabs-python/blob/main/python-examples/bulk/bulk_send_with_amp_body.py)
@@ -217,6 +217,7 @@ For more information about AMP please see [AMP Project](https://amp.dev/document
217
217
218
218
<aname="version"></a>
219
219
# Version
220
+
* 1.4.0 - Adding Metadata and Tags
220
221
* 1.2.1 - Adding optional retry logic for Http requests. If configured, the request will retry when certain 500 errors occur (500, 502, 503, 504)
221
222
* 1.1.1 - Adding request timeout value on the client for Http requests
0 commit comments