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
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,11 @@ var client = require('button-client-node')('sk-XXX', {
37
37
38
38
##### Config
39
39
40
-
*`timeout`: The time in ms for network requests to abort
40
+
*`timeout`: The time in ms for network requests to abort. Defaults to false.
41
41
*`promise`: A function which accepts a resolver function and returns a promise. Used to integrate with the promise library of your choice (i.e. es6 Promises, Bluebird, Q, etc). If `promise` is supplied and is a function, all API functions will ignore any passed callbacks and instead return a promise.
42
+
*`hostname`: Defaults to `api.usebutton.com`
43
+
*`port`: Defaults to `443` if `config.secure`, else defaults to `80`.
44
+
*`secure`: Whether or not to use HTTPS. Defaults to true. **N.B: Button's API is only exposed through HTTPS. This option is provided purely as a convenience for testing and development.**
0 commit comments