Untitled

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

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

export const definition = triggerFromPipeDream(path, {
	id: 'trigger.youtube.new-subscriber',
	icon: 'https://www.freepnglogos.com/uploads/youtube-vector-logo-png-9.png',
	auth: 'oauth',
	apiAction: 'manage',
	desc: 'Emit new event for each new Youtube subscriber to user Channel. [See the docs](https://developers.google.com/youtube/v3/docs/subscriptions/insert) for more information',
	keywords: ['subscriber', 'new subscriber'],
	outputs: [
		{
			name: 'subscriber',
			type: typeFor('Entity<?>'),
		},
	],
});