diff --git a/README.rst b/README.rst index 310c844..7453beb 100644 --- a/README.rst +++ b/README.rst @@ -26,7 +26,7 @@ SparkPost Python API client :target: http://slack.sparkpost.com :alt: Slack Community -The super-mega-official Python package for using the SparkPost API. +The official Python package for using the SparkPost API. Installation @@ -60,6 +60,13 @@ Alternatively, you can pass the API key to the SparkPost class: from sparkpost import SparkPost sp = SparkPost('YOUR API KEY') +For SparkPost EU and Enterprise customers, you can pass in a second parameter to set the API host. + +.. code-block:: python + + from sparkpost import SparkPost + sp = SparkPost('YOUR API KEY', 'https://api.eu.sparkpost.com/api') + .. _API & SMTP: https://app.sparkpost.com/#/configuration/credentials @@ -115,11 +122,12 @@ Then create or update your ``appengine_config.py`` file to include the following import requests import requests_toolbelt.adapters.appengine - + requests_toolbelt.adapters.appengine.monkeypatch() Then deploy your app and you should be able to send using python-sparkpost on Google Cloud. + Documentation ------------- diff --git a/docs/index.rst b/docs/index.rst index b19fec8..b6ff477 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -33,6 +33,13 @@ Alternatively, you can pass the API key to the SparkPost class: from sparkpost import SparkPost sp = SparkPost('YOUR API KEY') +For SparkPost EU and Enterprise customers, you can pass in a second parameter to set the API host. + +.. code-block:: python + + from sparkpost import SparkPost + sp = SparkPost('YOUR API KEY', 'https://api.eu.sparkpost.com/api') + .. _API & SMTP: https://app.sparkpost.com/configuration/credentials