n8n/packages/nodes-base/credentials/CodaApi.credentials.ts
Michael Kret ef9d4aba90
fix: Update operations to run per item (#8967)
Co-authored-by: Elias Meire <elias@meire.dev>
2024-05-22 15:28:09 +03:00

29 lines
581 B
TypeScript

import type { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
export class CodaApi implements ICredentialType {
name = 'codaApi';
displayName = 'Coda API';
documentationUrl = 'coda';
properties: INodeProperties[] = [
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
typeOptions: { password: true },
default: '',
},
];
test: ICredentialTestRequest = {
request: {
baseURL: 'https://coda.io/apis/v1/whoami',
headers: {
Authorization: '=Bearer {{$credentials.accessToken}}',
},
},
};
}