n8n-nodes-elearning-magic 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Restart n8n after install.
|
|
|
11
11
|
|
|
12
12
|
## Configure
|
|
13
13
|
1) Add the **eLearning Magic** trigger node.
|
|
14
|
-
2) Webhook path
|
|
14
|
+
2) Webhook path auto-fills per workflow; after you save/activate, the node shows copyable Test/Production URLs in the Webhook URLs panel.
|
|
15
15
|
3) Create an **eLearning Magic Signing Secret** credential with your secret (signature is required).
|
|
16
16
|
4) Copy the webhook URL from the node and paste it into the eLearning Magic app when creating a connection (use the same secret).
|
|
17
17
|
5) Activate the workflow. Incoming events appear with the JSON body plus headers/query and a signature status flag.
|
|
@@ -31,6 +31,17 @@ class ElearningMagicTrigger {
|
|
|
31
31
|
subtitle: '={{$parameter["path"]}}',
|
|
32
32
|
inputs: [],
|
|
33
33
|
outputs: ['main'],
|
|
34
|
+
triggerPanel: {
|
|
35
|
+
header: 'Webhook URLs',
|
|
36
|
+
executionsHelp: {
|
|
37
|
+
inactive: 'Webhooks have two modes: test and production. <br /> <br /> <b>Use test mode while you build your workflow</b>. Click the \'Execute workflow\' button, then make a request to the test URL. The executions will show up in the editor.<br /> <br /> <b>Use production mode to run your workflow automatically</b>. Activate the workflow, then make requests to the production URL. These executions will show up in the executions list, but not in the editor.',
|
|
38
|
+
active: 'Webhooks have two modes: test and production. <br /> <br /> <b>Use test mode while you build your workflow</b>. Click the \'Execute workflow\' button, then make a request to the test URL. The executions will show up in the editor.<br /> <br /> <b>Use production mode to run your workflow automatically</b>. Since the workflow is activated, requests to the production URL will trigger executions. These executions will show up in the executions list, but not in the editor.',
|
|
39
|
+
},
|
|
40
|
+
activationHint: {
|
|
41
|
+
active: 'This node will also trigger automatically on new webhook requests (but those executions won\'t show up here).',
|
|
42
|
+
inactive: 'Activate this workflow to have it also run automatically for new webhook requests via the production URL.',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
34
45
|
credentials: [
|
|
35
46
|
{
|
|
36
47
|
name: 'elearningMagicApi',
|
|
@@ -46,7 +57,16 @@ class ElearningMagicTrigger {
|
|
|
46
57
|
restartWebhook: true,
|
|
47
58
|
},
|
|
48
59
|
],
|
|
49
|
-
properties: [
|
|
60
|
+
properties: [
|
|
61
|
+
{
|
|
62
|
+
displayName: 'Webhook Path',
|
|
63
|
+
name: 'path',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: '={{$workflow.id}}-elearning-magic',
|
|
66
|
+
description: 'The path for this webhook. The full webhook URL will be displayed above once you save the workflow.',
|
|
67
|
+
noDataExpression: true,
|
|
68
|
+
},
|
|
69
|
+
],
|
|
50
70
|
};
|
|
51
71
|
}
|
|
52
72
|
async webhook() {
|