31 lines
796 B
TypeScript
31 lines
796 B
TypeScript
import { INodeParams, INodeCredential } from '../src/Interface'
|
|
|
|
class OxylabsApiCredential implements INodeCredential {
|
|
label: string
|
|
name: string
|
|
version: number
|
|
description: string
|
|
inputs: INodeParams[]
|
|
|
|
constructor() {
|
|
this.label = 'Oxylabs API'
|
|
this.name = 'oxylabsApi'
|
|
this.version = 1.0
|
|
this.description = 'Oxylabs API credentials description, to add more info'
|
|
this.inputs = [
|
|
{
|
|
label: 'Oxylabs Username',
|
|
name: 'username',
|
|
type: 'string'
|
|
},
|
|
{
|
|
label: 'Oxylabs Password',
|
|
name: 'password',
|
|
type: 'password'
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|
|
module.exports = { credClass: OxylabsApiCredential }
|