26 lines
698 B
TypeScript
26 lines
698 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class SpiderApiCredential implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Spider API'
|
|
this.name = 'spiderApi'
|
|
this.version = 1.0
|
|
this.description = 'Get your API key from the <a target="_blank" href="https://spider.cloud">Spider</a> dashboard.'
|
|
this.inputs = [
|
|
{
|
|
label: 'Spider API Key',
|
|
name: 'spiderApiKey',
|
|
type: 'password'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: SpiderApiCredential }
|