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
Phaxio methods are categorized according to the Phaxio API route that they target.
75
75
See the [Phaxio Docs]('https://www.phaxio.com/docs/api/v2.1/') for more information about the raw API.
76
76
77
+
### Initialization
78
+
Initializing the `Phaxio` class takes two required arguments, the Key and Secret you retreived from Phaxio, and
79
+
allows for one optional argument, the minimum TLS version to use. By default, the minimum TLS version is set to
80
+
`TLSv1.2`. See the [TLS documentation](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options) for
81
+
other possible options to `minVersion` if you require something other than `TLSv1.2`. **Modifying the minimum TLS
82
+
version is not recommended.**
83
+
84
+
Arguments:
85
+
86
+
| Key | Value Type | Required? | Description |
87
+
| --- | ---------- | --------- | ----------- |
88
+
| `phaxio api key` | String | True | Your Phaxio API Key |
89
+
| `phaxio api secret` | String | True | Your Phaxio API Secret |
90
+
| `minimum TLS Version` | String | False | Default: `TLSv1.2`, other possible options are the same as `minVersion` in the [TLS documentation](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options). |
91
+
92
+
```javascript
93
+
constPhaxio=require('phaxio-official');
94
+
95
+
constphaxio=newPhaxio(<phaxio api key>, <phaxio api secret>, [optional:<minimum TLS version>]);
96
+
```
97
+
77
98
**All Phaxio methods take one argument:** either a single argument such as an ID, or an Object containing
0 commit comments