feat(Twake Node): Update icon, add cred test and custom operation support (#3431)

* Update icon, add cred injection and test, update url for integration

*  Fix error display for some edge cases

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
agobrech
2022-06-19 05:10:08 +02:00
committed by GitHub
parent d417ea7ffa
commit 6d64e84f5e
3 changed files with 19 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
import {
IAuthenticateBearer,
ICredentialTestRequest,
ICredentialType,
INodeProperties,
} from 'n8n-workflow';
@@ -15,4 +17,18 @@ export class TwakeCloudApi implements ICredentialType {
default: '',
},
];
authenticate = {
type: 'bearer',
properties: {
tokenPropertyName: 'workspaceKey',
},
} as IAuthenticateBearer;
test: ICredentialTestRequest = {
request: {
baseURL: 'https://plugins.twake.app/plugins/n8n',
url: '/channel',
method: 'POST',
},
};
}