|
1 | 1 | {
|
2 |
| - "title":"Webhook", |
3 |
| - "description" : "Webhooks allow you to collect information about events as they happen in near real-time. Provide a URL, select when and where you want that URL to receive data about events on your list, and we'll send it to you as the events take place. It is recommended that you specify a URL using https.", |
4 |
| - "triggers":{ |
5 |
| - "receive":{ |
6 |
| - "title":"Receive", |
7 |
| - "main":"./receive.js", |
8 |
| - "fields" : { |
9 |
| - "url" : { |
10 |
| - "viewClass" : "WebHookURLView", |
11 |
| - "label" : "WebHook URL", |
12 |
| - "required" : false |
| 2 | + "title": "Webhook", |
| 3 | + "description": "Webhooks allow you to collect information about events as they happen in near real-time. Provide a URL, select when and where you want that URL to receive data about events on your list, and we'll send it to you as the events take place. It is recommended that you specify a URL using https.", |
| 4 | + "triggers": { |
| 5 | + "receive": { |
| 6 | + "title": "Receive", |
| 7 | + "main": "./receive.js", |
| 8 | + "fields": { |
| 9 | + "url": { |
| 10 | + "viewClass": "WebHookURLView", |
| 11 | + "label": "WebHook URL", |
| 12 | + "required": false |
13 | 13 | },
|
14 |
| - "payload" : { |
15 |
| - "viewClass":"WebHookPayloadView", |
16 |
| - "label":"Sample data", |
17 |
| - "required" : true, |
18 |
| - "placeholder":"{ \"foo\" : \"bar\" }" |
| 14 | + "payload": { |
| 15 | + "viewClass": "WebHookPayloadView", |
| 16 | + "label": "Sample data", |
| 17 | + "required": true, |
| 18 | + "placeholder": "{ \"foo\" : \"bar\" }" |
19 | 19 | }
|
20 | 20 | },
|
21 |
| - "metadata" : { |
22 |
| - "out" : {} |
| 21 | + "metadata": { |
| 22 | + "out": {} |
23 | 23 | }
|
24 | 24 | }
|
25 | 25 | },
|
26 |
| - "actions" : { |
27 |
| - "post" : { |
28 |
| - "title" : "Post", |
29 |
| - "main" : "./post.js", |
30 |
| - "fields" : { |
31 |
| - "uri" : { |
32 |
| - "viewClass":"TextFieldView", |
33 |
| - "label":"URI", |
34 |
| - "required" : true |
| 26 | + "actions": { |
| 27 | + "post": { |
| 28 | + "title": "Send data", |
| 29 | + "main": "./send.js", |
| 30 | + "fields": { |
| 31 | + "method": { |
| 32 | + "viewClass": "SelectView", |
| 33 | + "label": "HTTP Verb", |
| 34 | + "prompt": "Please select", |
| 35 | + "required": true, |
| 36 | + "model": { |
| 37 | + "POST": "POST", |
| 38 | + "PUT": "PUT" |
| 39 | + } |
| 40 | + }, |
| 41 | + "uri": { |
| 42 | + "viewClass": "TextFieldView", |
| 43 | + "label": "URI", |
| 44 | + "required": true |
35 | 45 | },
|
36 |
| - "secret" : { |
37 |
| - "viewClass":"TextFieldView", |
38 |
| - "label":"Secret", |
| 46 | + "secret": { |
| 47 | + "viewClass": "TextFieldView", |
| 48 | + "label": "Secret", |
39 | 49 | "required": false
|
40 | 50 | }
|
41 | 51 | }
|
|
0 commit comments