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
Copy file name to clipboardExpand all lines: README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Before using this library, you must have:
21
21
npm install sparkpost
22
22
```
23
23
24
+
*Note: Node.js versions 0.10 and 0.12 are no longer supported. For versions < 4, please continue using [sparkpost v1.3.8](https://github.com/SparkPost/node-sparkpost/tree/1.3.8)*
*`options.uri` - can either be a full url or a path that is appended to `options.origin` used at initialization ([url.resolve](http://nodejs.org/api/url.html#url_url_resolve_from_to))
48
59
*`options.debug` - setting to `true` includes full response from request client for debugging purposes
49
-
*`callback` - executed after task is completed if provided*
50
-
* standard `callback(err, data)`
51
-
*`err` - any error that occurred
52
-
*`data` - results from API call
53
-
*`data.debug` - full response from request client when `options.debug` is `true`
54
-
***get | post | put | delete(options[, callback]) →`{Promise}`**
60
+
***get | post | put | delete(options[, callback])**
55
61
*`options` - see request options
56
-
*`callback` - see request options
57
62
* Request method will be overwritten and set to the same value as the name of these methods.
58
63
59
-
*callback is optional because all methods return a Promise.
0 commit comments