File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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
121122const SparkPost = require (' sparkpost' );
122123const 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+
124128client .transmissions .send ({
125129 options: {
126130 sandbox: true
You can’t perform that action at this time.
0 commit comments