Line 14: |
Line 14: |
| </pre><br> | | </pre><br> |
| | | |
− | ===<p><b>Parameters</b></p>===
| + | ==<p><b>Request configuration</b></p>== |
− | * ''''' IP address whitelist '''''
| + | |
| + | === Identifier === |
| + | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| + | The identifier is what is after the base url. |
| + | Base URL: |
| + | |
| + | https://trigger.macrodroid.com/c306bcd7-5f78-4895-bee4-677d4d/ |
| + | |
| + | E.G. The identifier would be 'mywebhook' |
| + | https://trigger.macrodroid.com/c306bcd7-5f78-4895-bee4-677d4d/mywebhook |
| + | </pre><br> |
| + | |
| + | === IP address whitelist === |
| + | |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| You can support one or more IP addresses so that the webhook is only activated from specific IP addresses. | | You can support one or more IP addresses so that the webhook is only activated from specific IP addresses. |
Line 23: |
Line 36: |
| </pre><br> | | </pre><br> |
| | | |
− | * ''''' Save body to string variable '''''
| + | === Save body to string variable === |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| If your HTTP POST request contains any text format, you can save it in any string variable. | | If your HTTP POST request contains any text format, you can save it in any string variable. |
Line 32: |
Line 45: |
| </pre><br> | | </pre><br> |
| | | |
− | * ''''' TinyUrl '''''
| + | ==<p><b>URL short</b></p>== |
| + | |
| + | === TinyUrl === |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| It is a URL shortening service used to create shorter, more shareable links. | | It is a URL shortening service used to create shorter, more shareable links. |
Line 41: |
Line 56: |
| </pre><br> | | </pre><br> |
| | | |
− | ===<p><b>Formats to include variables</b></p>===
| + | ==<p><b>Include variables</b></p>== |
− | * ''''' Identifier'''''
| |
− | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| |
− | The identifier is what is after the base url.
| |
− | Base URL:
| |
| | | |
− | https://trigger.macrodroid.com/c306bcd7-5f78-4895-bee4-677d4d/
| + | === String, Integer, Decimal, Boolean === |
| | | |
− | E.G. The identifier would be 'mywebhook'
| + | * ''''' [[Variables|String, Integer, Decimal, Boolean]] ''''' |
− | https://trigger.macrodroid.com/c306bcd7-5f78-4895-bee4-677d4d/mywebhook
| |
− | </pre><br>
| |
− | * ''''' Attach variable value [[Variables|String, Integer, Decimal, Boolean]] ''''' | |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| ID = User-defined identifier. | | ID = User-defined identifier. |
Line 70: |
Line 78: |
| | | |
| <br> | | <br> |
− | * ''''' Attach Data Structure [[Variables|Dictionary - Array]] ''''' | + | |
| + | === Dictionary - Array === |
| + | |
| + | * ''''' [[Variables|Dictionary - Array]] ''''' |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| id = User-defined identifier. | | id = User-defined identifier. |
Line 86: |
Line 97: |
| <br></pre> | | <br></pre> |
| | | |
− | ===<p><b>Webhook management</b></p>===
| + | ==<p><b>Webhook management</b></p>== |
− | * ''''' Export device ID to new device '''''
| + | |
| + | === Export device ID to new device === |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| You will be asked to create a password (it will be linked to your current device ID) and you can import it later in case your device is damaged or you update your current device. | | You will be asked to create a password (it will be linked to your current device ID) and you can import it later in case your device is damaged or you update your current device. |
Line 94: |
Line 106: |
| </pre><br> | | </pre><br> |
| | | |
− | * ''''' Import device ID from other device '''''
| + | === Import device ID from other device === |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| You will be asked for the Device ID and password and you will be able to correctly import the Device ID. | | You will be asked for the Device ID and password and you will be able to correctly import the Device ID. |
| </pre><br> | | </pre><br> |
| | | |
− | * ''''' Generate new device ID '''''
| + | === Generate new device ID === |
| + | |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |
| This will assign a new device id to this device. Existing webhook links for this device will no longer function. | | This will assign a new device id to this device. Existing webhook links for this device will no longer function. |
Line 106: |
Line 119: |
| </pre><br> | | </pre><br> |
| | | |
− | ===<p><b>Examples</b></p>===
| + | ==<p><b>Example</b></p>== |
| | | |
| <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> |