You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method has to return an array of resources (searches must return an array), if you have pagination or you api returns an array inside nested fields, here you have to extract the array.
This method has to return either true or false if a method is a [zapier search action](https://platform.zapier.com/docs/search-create).
36
+
37
+
```
38
+
const isTrigger = (key) => {
39
+
// TODO: custom logic
40
+
return false
41
+
}
42
+
```
43
+
44
+
### 4) **utils/utils.js** searchMiddleware method
45
+
46
+
```
47
+
const triggerMiddleware = (action) => {
48
+
return action
49
+
}
50
+
```
51
+
30
52
### 3) **authentication.js**
53
+
31
54
This file must be written completely according to your api authentication, you can get it generated automatically by creating the integration on the zapier website and filling the requested data, or you can build it yourself following [this guide](https://platform.zapier.com/cli_tutorials/getting-started#adding-authentication).
32
55
33
56
## Samples
34
-
To get your app made public on zapier you must provide a sample (json example response) for each of your actions, these samples get automatically generated by this generator but you have to have actual response examples in you openapi file.
35
57
36
-
For example:
58
+
To get your app made public on zapier you must provide a sample (json example response) for each of your actions, these samples get automatically generated by this generator but you have to have actual response examples in you openapi file.
0 commit comments