From 83c82e4289cd5213b72e28b3e0b2633fba112514 Mon Sep 17 00:00:00 2001 From: Simon Fredsted Date: Tue, 16 Jul 2024 18:57:19 +0200 Subject: [PATCH] Generate PDF --- docs/api/action-types.md | 45 +++++++++++++++++++++++++---- docs/custom-actions/action-types.md | 6 +++- docs/news.markdown | 4 +++ 3 files changed, 48 insertions(+), 7 deletions(-) diff --git a/docs/api/action-types.md b/docs/api/action-types.md index 5b9e877..d7fb6a7 100644 --- a/docs/api/action-types.md +++ b/docs/api/action-types.md @@ -2,10 +2,15 @@ The following is a list of the API names for Action Types, along with a list of + +### `auth_basic` +- `username`: string +- `password`: **required**, string + ### `auto_json` - `source`: string - `jsonpath`: string -- `variable_name`: **required**, string +- `variable_name`: string ### `aws_cf_invalidate` - `provider_id`: **required**, int @@ -51,7 +56,7 @@ The following is a list of the API names for Action Types, along with a list of - `action`: **required**, string, in:stop,continue,noop ### `database` -- `type`: **required**, in:mysql,pgsql +- `type`: **required**, in:mysql,pgsql,sqlsrv - `host`: **required**, string - `port`: number, min:1, max:65535 - `database`: **required**, string @@ -89,7 +94,9 @@ The following is a list of the API names for Action Types, along with a list of ### `dropbox_get_link` - `provider_id`: string, **required** - `path`: string, **required** -- `variable_name`: string, **required** +- `variable_name`: string +- `type`: string, in:share_link,temporary +- `share_audience`: string, in:public,team,no_one ### `dropbox_upload_file` - `provider_id`: string, **required** @@ -152,8 +159,8 @@ The following is a list of the API names for Action Types, along with a list of - `content`: nullable, string - `method`: nullable, in:POST,GET,OPTIONS,PUT,DELETE,PATCH,TRACE - `mode`: nullable, in:text,json,multipart,urlencoded,forward -- `auth`: nullable, object -- `auth.mode`: string, in:basic,digest,ntlm +- `auth`: nullable, array +- `auth.mode`: nullable, string, in:basic,digest,ntlm - `auth.username`: string - `auth.password`: string - `multipart`: array, **required**_if:mode,multipart @@ -168,6 +175,15 @@ The following is a list of the API names for Action Types, along with a list of - `skip_ssl_verification`: nullable, bool - `variable_name`: string - `timeout`: nullable, numeric, max:15 +- `retry`: array +- `retry.enabled`: nullable, bool +- `retry.retries`: nullable, numeric, min:1, max:10 +- `retry.delay`: nullable, numeric, min:0, max:10 +- `retry.require_status`: nullable, string + +### `hubspot_create_contact` +- `provider_id`: **required**, string +- `properties`: **required**, array ### `image_resize` - `source`: string, **required** @@ -217,8 +233,16 @@ The following is a list of the API names for Action Types, along with a list of ### `ntfy` - `topic`: string, **required** - `title`: string +- `icon`: string - `message`: string, **required** +### `pdf_generate` +- `content`: string +- `mode`: string, in:html,markdown +- `paper`: string, in:a4,letter +- `orientation`: string, in:portrait,landscape +- `variable_name`: string + ### `pushed_send` - `app_key`: string, **required** - `app_secret`: string, **required** @@ -288,6 +312,15 @@ The following is a list of the API names for Action Types, along with a list of ### `set_variable` - `name`: **required**, string - `value`: nullable, string +- `mode`: nullable, in:text,random,date +- `random`: array +- `random.*.length`: int, max:10000, **required**_if:mode,random +- `random.*.characters`: array, in:lowercase,uppercase,digits,symbols,user +- `random.*.alphabet`: string +- `date`: array +- `date.*.input`: string +- `date.*.format`: string, in:iso8601,mysql,unix,unixmicro,user +- `date.*.user_format`: string ### `sftp_upload` - `provider_id`: string @@ -338,7 +371,7 @@ The following is a list of the API names for Action Types, along with a list of ### `text_split` - `delimiter`: **required**, string - `source`: **required**, string -- `variable_name`: **required**, string +- `variable_name`: string - `repeat`: boolean ### `twitter_tweet` diff --git a/docs/custom-actions/action-types.md b/docs/custom-actions/action-types.md index 757ebf9..c1ab25e 100644 --- a/docs/custom-actions/action-types.md +++ b/docs/custom-actions/action-types.md @@ -552,7 +552,11 @@ There are three modes: Saves (or overwrites) a Global Variable that's saved permanently and available to all URLs in your account. If you don't need to save the variable permanently, you should use the *Set Runtime Variable* instead. -## Image Handling +## Multimedia + +### Generate PDF + +Takes either HTML or markdown input and generates a variable (`$pdf$`) containing the PDF file contents. You can enter this variable in e.g. an Send Email attachment content field, or with the Modify Response action (remember adding a `Content-Type: application/pdf` content type header!) ### Resize Image diff --git a/docs/news.markdown b/docs/news.markdown index 93fd6a5..1f560b3 100644 --- a/docs/news.markdown +++ b/docs/news.markdown @@ -22,6 +22,10 @@ Subscribe below to receive updates about improvements and new features on Webhoo +## 16 July 2024 + +* New Custom Action: Generate PDF, working with either Markdown or HTML content, can be used in e.g. Send Email, Modify Response actions. [More info here](/custom-actions/action-types.html#generate-pdf) + ## 15 July 2024 * As of version 0.2.0, the Webhook CLI `forward` command now works bidirectionally, forwarding the response back to your Webhook.site URL, acting as a proxy. [More info here](/cli.html#bidirectional-forwarding)