fix(beeminder Node): fix request id not being sent when creating a new datapoint

This commit is contained in:
Jonathan Bennetts
2022-09-02 15:51:05 +01:00
committed by GitHub
parent 071ab40c9f
commit 73c5210294
3 changed files with 24 additions and 8 deletions

View File

@@ -1,4 +1,9 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';
import {
IAuthenticateGeneric,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
export class BeeminderApi implements ICredentialType {
name = 'beeminderApi';
@@ -18,4 +23,20 @@ export class BeeminderApi implements ICredentialType {
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
body: {
auth_token: '={{$credentials.authToken}}',
},
},
};
test: ICredentialTestRequest = {
request: {
baseURL: 'https://www.beeminder.com/api/v1',
url: `=/users/{{$credentials.user}}.json`,
},
};
}