mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-12-18 02:03:03 -06:00
Adding FriendGrid example node (updated version of the one in the n8n docs)
This commit is contained in:
parent
1e43acf743
commit
a7dffc4df0
8 changed files with 263 additions and 72 deletions
|
|
@ -3,25 +3,19 @@ import {
|
|||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
|
||||
export class ExampleCredentials implements ICredentialType {
|
||||
name = 'exampleCredentials';
|
||||
displayName = 'Example Credentials';
|
||||
export class FriendGridApi implements ICredentialType {
|
||||
name = 'friendGridApi';
|
||||
displayName = 'FriendGrid API';
|
||||
documentationUrl = 'friendGrid';
|
||||
properties = [
|
||||
// The credentials to get from user and save encrypted.
|
||||
// Properties can be defined exactly in the same way
|
||||
// as node properties.
|
||||
{
|
||||
displayName: 'User',
|
||||
name: 'user',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token',
|
||||
name: 'accessToken',
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue