1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-03-05 20:50:17 -08:00
n8n/packages/nodes-base/credentials/ContentfulDeliveryApi.credentials.ts
2020-07-09 12:10:22 +02:00

32 lines
836 B
TypeScript

import { ICredentialType, NodePropertyTypes } from 'n8n-workflow';
export class ContentfulDeliveryApi implements ICredentialType {
name = 'contentfulDeliveryApi';
displayName = 'Delivery API';
properties = [
{
displayName: 'Space Id',
name: 'space_id',
type: 'string' as NodePropertyTypes,
default: '',
required: true,
description: 'The id for the Cotentful space.'
},
{
displayName: 'Content Delivery API - access token',
name: 'access_token',
type: 'string' as NodePropertyTypes,
default: '',
required: true,
description: 'Access token that has access to the space'
},
{
displayName: 'Content Preview API - access token',
name: 'access_token_preview',
type: 'string' as NodePropertyTypes,
default: '',
description: 'Access token that has access to the space'
}
];
}