Untitled

mail@pastecode.io avatar
unknown
typescript
a year ago
958 B
1
Indexable
Never
import { triggerFromPipeDream } from '@automation/components/pipedream';
import { typeFor } from '@automation/helpers/value';

const path = 'youtube_data_api/sources/new-comment-posted/new-comment-posted.js';

export const definition = triggerFromPipeDream(path, {
	id: 'trigger.youtube.new-comment-posted',
	icon: 'https://www.freepnglogos.com/uploads/youtube-vector-logo-png-9.png',
	auth: 'oauth',
	apiAction: 'manage',
	desc: 'Emit new event for each new comment or reply posted to a Youtube video. [See the docs](https://developers.google.com/youtube/v3/docs/comments/insert) for more information',
	keywords: ['comment', 'new comment', 'new comment posted', 'comment posted'],
	inputs: [
		{
			name: 'videoId',
			type: typeFor('Text'),
			desc: 'Return comment threads associated with the specified video ID.',
			showOnDiagram: false,
		},
	],
	outputs: [
		{
			name: 'comment',
			type: typeFor('Entity<?>'),
		},
	],
});