Skip to content

Commit a2f8eda

Browse files
authored
Merge pull request #235 from AlexJPotter/ISSUE-234
ISSUE-234: Document how to configure for the EU API
2 parents 3147101 + 5ba92c8 commit a2f8eda

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ npm install sparkpost
3333
* `options.origin` or `options.endpoint`
3434
* Required: no
3535
* Type: `String`
36-
* Default: `https://api.sparkpost.com:443`
36+
* Default: `https://api.sparkpost.com:443`<br/>
37+
*Note: To use the SparkPost EU API you will need to set this to `https://api.eu.sparkpost.com:443`.*
3738
* `options.apiVersion`
3839
* Required: no
3940
* Type: `String`
@@ -121,6 +122,9 @@ successful and if not information about the error that occurred. If a callback i
121122
const SparkPost = require('sparkpost');
122123
const client = new SparkPost('<YOUR API KEY>');
123124

125+
// If you have a SparkPost EU account you will need to pass a different `origin` via the options parameter:
126+
// const euClient = new SparkPost('<YOUR API KEY>', { origin: 'https://api.eu.sparkpost.com:443' });
127+
124128
client.transmissions.send({
125129
options: {
126130
sandbox: true

0 commit comments

Comments
 (0)