File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ SparkPost Python API client
26
26
:target: http://slack.sparkpost.com
27
27
:alt: Slack Community
28
28
29
- The super-mega- official Python package for using the SparkPost API.
29
+ The official Python package for using the SparkPost API.
30
30
31
31
Documentation
32
32
-------------
@@ -68,6 +68,13 @@ Alternatively, you can pass the API key to the SparkPost class:
68
68
from sparkpost import SparkPost
69
69
sp = SparkPost(' YOUR API KEY' )
70
70
71
+ For SparkPost EU and Enterprise accounts, pass in a second parameter to set the API host.
72
+
73
+ .. code-block :: python
74
+
75
+ from sparkpost import SparkPost
76
+ sp = SparkPost(' YOUR API KEY' , ' https://api.eu.sparkpost.com/api' )
77
+
71
78
.. _API & SMTP : https://app.sparkpost.com/#/configuration/credentials
72
79
73
80
@@ -123,7 +130,7 @@ Then create or update your ``appengine_config.py`` file to include the following
123
130
124
131
import requests
125
132
import requests_toolbelt.adapters.appengine
126
-
133
+
127
134
requests_toolbelt.adapters.appengine.monkeypatch()
128
135
129
136
Then deploy your app and you should be able to send using python-sparkpost on Google Cloud.
Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ Alternatively, you can pass the API key to the SparkPost class:
33
33
from sparkpost import SparkPost
34
34
sp = SparkPost(' YOUR API KEY' )
35
35
36
+ For SparkPost EU and Enterprise accounts, pass in a second parameter to set the API host.
37
+
38
+ .. code-block :: python
39
+
40
+ from sparkpost import SparkPost
41
+ sp = SparkPost(' YOUR API KEY' , ' https://api.eu.sparkpost.com/api' )
42
+
36
43
.. _API & SMTP : https://app.sparkpost.com/configuration/credentials
37
44
38
45
You can’t perform that action at this time.
0 commit comments