Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

1.1 KB
Raw Blame
import { OAuth2GrantType, PieceAuth, Property } from '@activepieces/pieces-framework';

export const zohoCampaignsAuth = PieceAuth.OAuth2({
	props: {
		location: Property.StaticDropdown({
			displayName: 'Data Center',
			description: 'The data center location of your Zoho Campaigns account',
			required: true,
			options: {
				options: [
					{
						label: 'zoho.com (United States)',
						value: 'zoho.com',
					},
					{
						label: 'zoho.eu (Europe)',
						value: 'zoho.eu',
					},
					{
						label: 'zoho.in (India)',
						value: 'zoho.in',
					},
					{
						label: 'zoho.com.au (Australia)',
						value: 'zoho.com.au',
					},
					{
						label: 'zoho.jp (Japan)',
						value: 'zoho.jp',
					},
					{
						label: 'zoho.com.cn (China)',
						value: 'zoho.com.cn',
					},
				],
			},
		}),
	},
	description: 'Connect your Zoho Campaigns account using OAuth2',
	grantType: OAuth2GrantType.AUTHORIZATION_CODE,
	required: true,
	authUrl: 'https://accounts.{location}/oauth/v2/auth',
	tokenUrl: 'https://accounts.{location}/oauth/v2/token',
	scope: ['ZohoCampaigns.campaign.ALL', 'ZohoCampaigns.contact.ALL'],
});