browserless@1.0.1
This adaptor exports the following namespaced functions:
This adaptor exports the following from common:
- as()
- combine()
- cursor()
- dataPath()
- dataValue()
- dateFns
- each()
- field()
- fields()
- fn()
- fnIf()
- group()
- lastReferenceValue()
- map()
- merge()
- scrubEmojis()
- source()
- sourceValue()
- util
Functions
createPDF
createPDF(input, options) ⇒ Operation
Create a PDF from HTML or URL.
Returns: Operation - Returns state with base64 string directly
| Param | Type | Description |
|---|---|---|
| input | string | HTML string or URL string |
| options | object | Optional request options |
http
These functions belong to the http namespace.
http.request
request(method, path, options) ⇒ Operation
Make a Browserless-authenticated HTTP request operation. This operation always sends requests to the configured Browserless 'baseUrl'.
Returns: Operation - an OpenFn operation returning a state with data and response.
| Param | Type | Description |
|---|---|---|
| method | string | HTTP method (e.g. 'GET', 'POST'). |
| path | string | API Path (e.g. 'pdf, 'content) joined to the configured 'baseUrl'. |
| options | object | Request options (body, headers, query, parseAs). |
This operation writes the following keys to state:
| State Key | Description |
|---|