n8n/packages/nodes-base/credentials/ContentfulApi.credentials.ts

38 lines
1,008 B
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-08-04 12:07:54 -07:00
//https://www.contentful.com/developers/docs/references/authentication/
export class ContentfulApi implements ICredentialType {
name = 'contentfulApi';
displayName = 'Contentful API';
documentationUrl = 'contentful';
properties: INodeProperties[] = [
2020-08-04 12:07:54 -07:00
{
displayName: 'Space ID',
name: 'spaceId',
type: 'string',
2020-08-04 12:07:54 -07:00
default: '',
required: true,
description: 'The ID for the Contentful space',
2020-08-04 12:07:54 -07:00
},
{
displayName: 'Content Delivery API Access Token',
2020-08-04 12:07:54 -07:00
name: 'ContentDeliveryaccessToken',
type: 'string',
2020-08-04 12:07:54 -07:00
default: '',
description:
'Access token that has access to the space. Can be left empty if only Delivery API should be used.',
2020-08-04 12:07:54 -07:00
},
{
displayName: 'Content Preview API Access Token',
2020-08-04 12:07:54 -07:00
name: 'ContentPreviewaccessToken',
type: 'string',
2020-08-04 12:07:54 -07:00
default: '',
description:
'Access token that has access to the space. Can be left empty if only Preview API should be used.',
2020-08-04 12:07:54 -07:00
},
];
}