23 lines
570 B
JavaScript
23 lines
570 B
JavaScript
module.exports = {
|
|
type: 'custom',
|
|
test: (z, bundle) =>
|
|
z.request({ url: `${bundle.authData.baseUrl}/v1/status` }).then((r) => r.data),
|
|
fields: [
|
|
{
|
|
key: 'baseUrl',
|
|
label: 'API Base URL',
|
|
type: 'string',
|
|
required: true,
|
|
default: 'http://localhost:3000',
|
|
helpText: 'Where your Zappier API is running.',
|
|
},
|
|
{
|
|
key: 'apiKey',
|
|
label: 'API Key',
|
|
type: 'password',
|
|
required: true,
|
|
helpText: 'Your Zappier customer API key.',
|
|
},
|
|
],
|
|
connectionLabel: '{{bundle.authData.baseUrl}}',
|
|
};
|