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.
73
73
See the [Phaxio Docs]('https://www.phaxio.com/docs/api/v2.1/') for more information about the raw API.
74
74
75
-
**All** Phaxio methods take one argument: either a single argument such as an ID, or an Object containing
75
+
**All Phaxio methods take one argument:** either a single argument such as an ID, or an Object containing
76
76
`key: value` parameters.
77
77
See the documentation below for specifics.
78
78
@@ -162,7 +162,7 @@ The methods attached to a Fax Object take one or no arguments as they already ha
162
162
| `faxObject.cancel()` | None | Cancels the fax. |
163
163
| `faxObject.resend()` | `callback_url` (optional) | Resends the fax. Default `callback_url` uses the fax's original `callback_url`. Passing a URL string will set the `callback_url` to the new value. |
| `faxObject.getFile()` | `thumbnail` (optional) | Gets the fax's document. The default `thumbnail` is `null`, which gets the full file. Specify a string, `'s'` or `'l'`, to get a small or large thumbnail (respectively) of the first page of the document. |
165
+
| `faxObject.getFile()` | `thumbnail` (optional) | Gets the fax's document. The default `thumbnail` is `null`, which gets the full PDF file. Specify a string, `'s'` or `'l'`, to get a small or large JPG thumbnail (respectively) of the first page of the document. |
166
166
| `faxObject.deleteFile()` | None | Deletes a document associated with a fax. |
167
167
| `faxObject.testDelete()` | None | Deletes a fax created using Test API Credentials. |
168
168
@@ -186,6 +186,14 @@ phaxio.faxes.create({ to: '+1234567890', content_url: 'https://google.com' })
186
186
})
187
187
.then(() =>console.log('Insert successful.'))
188
188
.catch((err) => { throw err; });
189
+
190
+
// Write out the thumbnail of a created fax to a file.
0 commit comments