Skip to content

Commit

Permalink
first changes to credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
riascho committed Aug 6, 2024
1 parent 98115e9 commit ddcb942
Showing 1 changed file with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
import type {
ICredentialType,
INodeProperties,
IAuthenticateGeneric,
ICredentialTestRequest,
} from 'n8n-workflow';

export class AcuitySchedulingApi implements ICredentialType {
name = 'acuitySchedulingApi';
Expand All @@ -22,4 +27,21 @@ export class AcuitySchedulingApi implements ICredentialType {
default: '',
},
];

authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
auth: {
username: '={{$credentials.username}}',
password: '={{$credentials.password}}',
},
},
};

test: ICredentialTestRequest = {
request: {
baseURL: 'https://acuityscheduling.com/api/v1',
url: '/appointments',
},
};
}

0 comments on commit ddcb942

Please sign in to comment.