n8n-nodes-deepidv
Version:
n8n community node to integrate with the DeepIDV identity verification API
48 lines • 1.54 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpBinApi = void 0;
class HttpBinApi {
constructor() {
this.name = 'httpbinApi';
this.displayName = 'HttpBin API';
this.documentationUrl = 'https://your-docs-url';
this.properties = [
{
displayName: 'Token',
name: 'token',
type: 'string',
default: '',
typeOptions: {
password: true,
}
},
{
displayName: 'Domain',
name: 'domain',
type: 'string',
default: 'https://httpbin.org',
},
];
// This allows the credential to be used by other parts of n8n
// stating how this credential is injected as part of the request
// An example is the Http Request node that can make generic calls
// reusing this credential
this.authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{"Bearer " + $credentials.token}}',
},
},
};
// The block below tells how this credential can be tested
this.test = {
request: {
baseURL: '={{$credentials?.domain}}',
url: '/bearer',
},
};
}
}
exports.HttpBinApi = HttpBinApi;
//# sourceMappingURL=HttpBinApi.credentials.js.map