Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c625e03bf8 | ||
![]() |
c7604fa785 | ||
![]() |
a77ac9a3f9 | ||
![]() |
6062cfafaf | ||
![]() |
5263e774d2 | ||
![]() |
22b4a04567 |
@@ -0,0 +1,157 @@
|
|||||||
|
import defineAction from '../../../../helpers/define-action.js';
|
||||||
|
import isEmpty from 'lodash/isEmpty.js';
|
||||||
|
import omitBy from 'lodash/omitBy.js';
|
||||||
|
|
||||||
|
export default defineAction({
|
||||||
|
name: 'Create event',
|
||||||
|
key: 'createEvent',
|
||||||
|
description: 'Creates a new event.',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Organization',
|
||||||
|
key: 'organizationId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listOrganizations',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Name',
|
||||||
|
key: 'name',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Summary',
|
||||||
|
key: 'summary',
|
||||||
|
type: 'string',
|
||||||
|
required: false,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Event Start',
|
||||||
|
key: 'eventStart',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
description: 'e.g. 2018-05-12T02:00:00Z',
|
||||||
|
variables: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Event End',
|
||||||
|
key: 'eventEnd',
|
||||||
|
type: 'string',
|
||||||
|
required: true,
|
||||||
|
description: 'e.g. 2018-05-12T02:00:00Z',
|
||||||
|
variables: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Venue',
|
||||||
|
key: 'venueId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: false,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listVenues',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'parameters.organizationId',
|
||||||
|
value: '{parameters.organizationId}',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Currency',
|
||||||
|
key: 'currencyId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: 'The ISO 4217 currency code.',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listCurrency',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Listed?',
|
||||||
|
key: 'listed',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: false,
|
||||||
|
description: 'Can this event be found on Eventbrite?',
|
||||||
|
variables: true,
|
||||||
|
options: [
|
||||||
|
{ label: 'Yes', value: 'true' },
|
||||||
|
{ label: 'No', value: 'false' },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const {
|
||||||
|
organizationId,
|
||||||
|
name,
|
||||||
|
summary,
|
||||||
|
eventStart,
|
||||||
|
eventEnd,
|
||||||
|
venueId,
|
||||||
|
currencyId,
|
||||||
|
listed,
|
||||||
|
} = $.step.parameters;
|
||||||
|
|
||||||
|
const fields = {
|
||||||
|
name: {
|
||||||
|
html: name,
|
||||||
|
},
|
||||||
|
summary,
|
||||||
|
start: {
|
||||||
|
timezone: 'UTC',
|
||||||
|
utc: eventStart,
|
||||||
|
},
|
||||||
|
end: {
|
||||||
|
timezone: 'UTC',
|
||||||
|
utc: eventEnd,
|
||||||
|
},
|
||||||
|
currency: currencyId,
|
||||||
|
venue_id: venueId,
|
||||||
|
listed,
|
||||||
|
};
|
||||||
|
|
||||||
|
const filteredFields = omitBy(fields, isEmpty);
|
||||||
|
|
||||||
|
const { data } = await $.http.post(
|
||||||
|
`/v3/organizations/${organizationId}/events/`,
|
||||||
|
{
|
||||||
|
event: filteredFields,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
$.setActionItem({
|
||||||
|
raw: data,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
});
|
3
packages/backend/src/apps/eventbrite/actions/index.js
Normal file
3
packages/backend/src/apps/eventbrite/actions/index.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
import createEvent from './create-event/index.js';
|
||||||
|
|
||||||
|
export default [createEvent];
|
7
packages/backend/src/apps/eventbrite/assets/favicon.svg
Normal file
7
packages/backend/src/apps/eventbrite/assets/favicon.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
||||||
|
<g>
|
||||||
|
<circle fill="#F05537" cx="128" cy="128" r="128"></circle>
|
||||||
|
<path d="M117.475323,82.7290398 C136.772428,78.4407943 156.069532,86.3025777 166.790146,101.311437 L81.5017079,120.608542 C84.3605382,102.26438 98.1782181,87.0172853 117.475323,82.7290398 Z M167.266618,153.48509 C160.596014,163.252761 150.351872,170.161601 138.678314,172.782195 C119.38121,177.070441 99.8458692,169.208657 89.1252554,153.961562 L174.651929,134.664457 L188.469609,131.567391 L215.152026,125.611495 C214.91379,119.893834 214.199082,114.176173 213.007903,108.696749 C202.287289,62.7172275 155.354825,33.8906884 108.42236,44.6113021 C61.4898956,55.3319159 32.1868848,101.073201 43.1457344,147.290958 C54.1045839,193.508715 100.798813,222.097018 147.731277,211.376404 C175.366637,205.182272 196.807864,186.599875 207.766714,163.014525 L167.266618,153.48509 L167.266618,153.48509 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1,4 +1,3 @@
|
|||||||
import crypto from 'crypto';
|
|
||||||
import { URLSearchParams } from 'url';
|
import { URLSearchParams } from 'url';
|
||||||
|
|
||||||
export default async function generateAuthUrl($) {
|
export default async function generateAuthUrl($) {
|
||||||
@@ -6,19 +5,15 @@ export default async function generateAuthUrl($) {
|
|||||||
(field) => field.key == 'oAuthRedirectUrl'
|
(field) => field.key == 'oAuthRedirectUrl'
|
||||||
);
|
);
|
||||||
const redirectUri = oauthRedirectUrlField.value;
|
const redirectUri = oauthRedirectUrlField.value;
|
||||||
const state = crypto.randomBytes(100).toString('base64url');
|
|
||||||
|
|
||||||
const searchParams = new URLSearchParams({
|
const searchParams = new URLSearchParams({
|
||||||
|
response_type: 'code',
|
||||||
client_id: $.auth.data.clientId,
|
client_id: $.auth.data.clientId,
|
||||||
redirect_uri: redirectUri,
|
redirect_uri: redirectUri,
|
||||||
response_type: 'code',
|
|
||||||
state,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const url = `https://api.surveymonkey.com/oauth/authorize?${searchParams.toString()}`;
|
const url = `https://www.eventbrite.com/oauth/authorize?${searchParams.toString()}`;
|
||||||
|
|
||||||
await $.auth.set({
|
await $.auth.set({
|
||||||
url,
|
url,
|
||||||
originalState: state,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
@@ -10,15 +10,15 @@ export default {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
readOnly: true,
|
readOnly: true,
|
||||||
value: '{WEB_APP_URL}/app/surveymonkey/connections/add',
|
value: '{WEB_APP_URL}/app/eventbrite/connections/add',
|
||||||
placeholder: null,
|
placeholder: null,
|
||||||
description:
|
description:
|
||||||
'When asked to input a redirect URL in SurveyMonkey, enter the URL above.',
|
'When asked to input a redirect URL in Eventbrite, enter the URL above.',
|
||||||
clickToCopy: true,
|
clickToCopy: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'clientId',
|
key: 'clientId',
|
||||||
label: 'Client ID',
|
label: 'API Key',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
readOnly: false,
|
readOnly: false,
|
@@ -1,22 +1,18 @@
|
|||||||
import getCurrentUser from '../common/get-current-user.js';
|
import getCurrentUser from '../common/get-current-user.js';
|
||||||
|
|
||||||
const verifyCredentials = async ($) => {
|
const verifyCredentials = async ($) => {
|
||||||
if ($.auth.data.originalState !== $.auth.data.state) {
|
|
||||||
throw new Error("The 'state' parameter does not match.");
|
|
||||||
}
|
|
||||||
|
|
||||||
const oauthRedirectUrlField = $.app.auth.fields.find(
|
const oauthRedirectUrlField = $.app.auth.fields.find(
|
||||||
(field) => field.key == 'oAuthRedirectUrl'
|
(field) => field.key == 'oAuthRedirectUrl'
|
||||||
);
|
);
|
||||||
const redirectUri = oauthRedirectUrlField.value;
|
const redirectUri = oauthRedirectUrlField.value;
|
||||||
const { data } = await $.http.post(
|
const { data } = await $.http.post(
|
||||||
'https://api.surveymonkey.com/oauth/token',
|
'https://www.eventbrite.com/oauth/token',
|
||||||
{
|
{
|
||||||
|
grant_type: 'authorization_code',
|
||||||
|
client_id: $.auth.data.clientId,
|
||||||
client_secret: $.auth.data.clientSecret,
|
client_secret: $.auth.data.clientSecret,
|
||||||
code: $.auth.data.code,
|
code: $.auth.data.code,
|
||||||
redirect_uri: redirectUri,
|
redirect_uri: redirectUri,
|
||||||
client_id: $.auth.data.clientId,
|
|
||||||
grant_type: 'authorization_code',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
@@ -28,13 +24,11 @@ const verifyCredentials = async ($) => {
|
|||||||
await $.auth.set({
|
await $.auth.set({
|
||||||
accessToken: data.access_token,
|
accessToken: data.access_token,
|
||||||
tokenType: data.token_type,
|
tokenType: data.token_type,
|
||||||
accessUrl: data.access_url,
|
|
||||||
expiresIn: data.expires_in,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const currentUser = await getCurrentUser($);
|
const currentUser = await getCurrentUser($);
|
||||||
|
|
||||||
const screenName = [currentUser.username, currentUser.email]
|
const screenName = [currentUser.name, currentUser.emails[0].email]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(' @ ');
|
.join(' @ ');
|
||||||
|
|
@@ -1,6 +1,6 @@
|
|||||||
const addAuthHeader = ($, requestConfig) => {
|
const addAuthHeader = ($, requestConfig) => {
|
||||||
if ($.auth.data?.accessToken) {
|
if ($.auth.data?.accessToken) {
|
||||||
requestConfig.headers.Authorization = `${$.auth.data.tokenType} ${$.auth.data.accessToken}`;
|
requestConfig.headers.Authorization = `Bearer ${$.auth.data.accessToken}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return requestConfig;
|
return requestConfig;
|
@@ -0,0 +1,5 @@
|
|||||||
|
import listEvents from './list-events/index.js';
|
||||||
|
import listOrganizations from './list-organizations/index.js';
|
||||||
|
import listVenues from './list-venues/index.js';
|
||||||
|
|
||||||
|
export default [listEvents, listOrganizations, listVenues];
|
@@ -0,0 +1,44 @@
|
|||||||
|
export default {
|
||||||
|
name: 'List events',
|
||||||
|
key: 'listEvents',
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const events = {
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
if (!organizationId) {
|
||||||
|
return events;
|
||||||
|
}
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
continuation: undefined,
|
||||||
|
order_by: 'created_desc',
|
||||||
|
};
|
||||||
|
|
||||||
|
do {
|
||||||
|
const { data } = await $.http.get(
|
||||||
|
`/v3/organizations/${organizationId}/events/`,
|
||||||
|
{
|
||||||
|
params,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (data.pagination.has_more_items) {
|
||||||
|
params.continuation = data.pagination.continuation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.events) {
|
||||||
|
for (const event of data.events) {
|
||||||
|
events.data.push({
|
||||||
|
value: event.id,
|
||||||
|
name: `${event.name.text} (${event.status})`,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (params.continuation);
|
||||||
|
|
||||||
|
return events;
|
||||||
|
},
|
||||||
|
};
|
@@ -0,0 +1,35 @@
|
|||||||
|
export default {
|
||||||
|
name: 'List organizations',
|
||||||
|
key: 'listOrganizations',
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const organizations = {
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
continuation: undefined,
|
||||||
|
};
|
||||||
|
|
||||||
|
do {
|
||||||
|
const { data } = await $.http.get('/v3/users/me/organizations', {
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
|
||||||
|
if (data.pagination.has_more_items) {
|
||||||
|
params.continuation = data.pagination.continuation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.organizations) {
|
||||||
|
for (const organization of data.organizations) {
|
||||||
|
organizations.data.push({
|
||||||
|
value: organization.id,
|
||||||
|
name: organization.name,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (params.continuation);
|
||||||
|
|
||||||
|
return organizations;
|
||||||
|
},
|
||||||
|
};
|
@@ -0,0 +1,43 @@
|
|||||||
|
export default {
|
||||||
|
name: 'List venues',
|
||||||
|
key: 'listVenues',
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const venues = {
|
||||||
|
data: [],
|
||||||
|
};
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
if (!organizationId) {
|
||||||
|
return venues;
|
||||||
|
}
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
continuation: undefined,
|
||||||
|
};
|
||||||
|
|
||||||
|
do {
|
||||||
|
const { data } = await $.http.get(
|
||||||
|
`/v3/organizations/${organizationId}/venues/`,
|
||||||
|
{
|
||||||
|
params,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
if (data.pagination.has_more_items) {
|
||||||
|
params.continuation = data.pagination.continuation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (data.venues) {
|
||||||
|
for (const venue of data.venues) {
|
||||||
|
venues.data.push({
|
||||||
|
value: venue.id,
|
||||||
|
name: venue.name,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} while (params.continuation);
|
||||||
|
|
||||||
|
return venues;
|
||||||
|
},
|
||||||
|
};
|
22
packages/backend/src/apps/eventbrite/index.js
Normal file
22
packages/backend/src/apps/eventbrite/index.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
import defineApp from '../../helpers/define-app.js';
|
||||||
|
import addAuthHeader from './common/add-auth-header.js';
|
||||||
|
import auth from './auth/index.js';
|
||||||
|
import dynamicData from './dynamic-data/index.js';
|
||||||
|
import triggers from './triggers/index.js';
|
||||||
|
import actions from './actions/index.js';
|
||||||
|
|
||||||
|
export default defineApp({
|
||||||
|
name: 'Eventbrite',
|
||||||
|
key: 'eventbrite',
|
||||||
|
baseUrl: 'https://www.eventbrite.com',
|
||||||
|
apiBaseUrl: 'https://www.eventbriteapi.com',
|
||||||
|
iconUrl: '{BASE_URL}/apps/eventbrite/assets/favicon.svg',
|
||||||
|
authDocUrl: '{DOCS_URL}/apps/eventbrite/connection',
|
||||||
|
primaryColor: 'F05537',
|
||||||
|
supportsConnections: true,
|
||||||
|
beforeRequest: [addAuthHeader],
|
||||||
|
auth,
|
||||||
|
dynamicData,
|
||||||
|
triggers,
|
||||||
|
actions,
|
||||||
|
});
|
11
packages/backend/src/apps/eventbrite/triggers/index.js
Normal file
11
packages/backend/src/apps/eventbrite/triggers/index.js
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import newAttendeeCheckIn from './new-attendee-check-in/index.js';
|
||||||
|
import newAttendeeRegistered from './new-attendee-registered/index.js';
|
||||||
|
import newEvents from './new-events/index.js';
|
||||||
|
import updatedAttendee from './updated-attendee/index.js';
|
||||||
|
|
||||||
|
export default [
|
||||||
|
updatedAttendee,
|
||||||
|
newAttendeeCheckIn,
|
||||||
|
newAttendeeRegistered,
|
||||||
|
newEvents,
|
||||||
|
];
|
@@ -0,0 +1,120 @@
|
|||||||
|
import Crypto from 'crypto';
|
||||||
|
import defineTrigger from '../../../../helpers/define-trigger.js';
|
||||||
|
|
||||||
|
export default defineTrigger({
|
||||||
|
name: 'New attendee check in',
|
||||||
|
key: 'newAttendeeCheckIn',
|
||||||
|
type: 'webhook',
|
||||||
|
description: "Triggers when an attendee's barcode is scanned in.",
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Organization',
|
||||||
|
key: 'organizationId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listOrganizations',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Event',
|
||||||
|
key: 'eventId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: false,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listEvents',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'parameters.organizationId',
|
||||||
|
value: '{parameters.organizationId}',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const dataItem = {
|
||||||
|
raw: $.request.body,
|
||||||
|
meta: {
|
||||||
|
internalId: Crypto.randomUUID(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async testRun($) {
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const {
|
||||||
|
data: { orders },
|
||||||
|
} = await $.http.get(`/v3/events/${eventId}/orders/`, params);
|
||||||
|
|
||||||
|
if (orders.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const computedWebhookEvent = {
|
||||||
|
config: {
|
||||||
|
action: 'barcode.checked_in',
|
||||||
|
user_id: organizationId,
|
||||||
|
webhook_id: '11111111',
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
},
|
||||||
|
api_url: orders[0].resource_uri,
|
||||||
|
};
|
||||||
|
|
||||||
|
const dataItem = {
|
||||||
|
raw: computedWebhookEvent,
|
||||||
|
meta: {
|
||||||
|
internalId: computedWebhookEvent.user_id,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async registerHook($) {
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
|
||||||
|
const payload = {
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
actions: 'attendee.checked_in',
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const { data } = await $.http.post(
|
||||||
|
`/v3/organizations/${organizationId}/webhooks/`,
|
||||||
|
payload
|
||||||
|
);
|
||||||
|
|
||||||
|
await $.flow.setRemoteWebhookId(data.id);
|
||||||
|
},
|
||||||
|
|
||||||
|
async unregisterHook($) {
|
||||||
|
await $.http.delete(`/v3/webhooks/${$.flow.remoteWebhookId}/`);
|
||||||
|
},
|
||||||
|
});
|
@@ -0,0 +1,120 @@
|
|||||||
|
import Crypto from 'crypto';
|
||||||
|
import defineTrigger from '../../../../helpers/define-trigger.js';
|
||||||
|
|
||||||
|
export default defineTrigger({
|
||||||
|
name: 'New attendee registered',
|
||||||
|
key: 'newAttendeeRegistered',
|
||||||
|
type: 'webhook',
|
||||||
|
description: 'Triggers when an attendee orders a ticket for an event.',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Organization',
|
||||||
|
key: 'organizationId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listOrganizations',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Event',
|
||||||
|
key: 'eventId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: false,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listEvents',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'parameters.organizationId',
|
||||||
|
value: '{parameters.organizationId}',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const dataItem = {
|
||||||
|
raw: $.request.body,
|
||||||
|
meta: {
|
||||||
|
internalId: Crypto.randomUUID(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async testRun($) {
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const {
|
||||||
|
data: { orders },
|
||||||
|
} = await $.http.get(`/v3/events/${eventId}/orders/`, params);
|
||||||
|
|
||||||
|
if (orders.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const computedWebhookEvent = {
|
||||||
|
config: {
|
||||||
|
action: 'order.placed',
|
||||||
|
user_id: organizationId,
|
||||||
|
webhook_id: '11111111',
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
},
|
||||||
|
api_url: orders[0].resource_uri,
|
||||||
|
};
|
||||||
|
|
||||||
|
const dataItem = {
|
||||||
|
raw: computedWebhookEvent,
|
||||||
|
meta: {
|
||||||
|
internalId: computedWebhookEvent.user_id,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async registerHook($) {
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
|
||||||
|
const payload = {
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
actions: 'order.placed',
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const { data } = await $.http.post(
|
||||||
|
`/v3/organizations/${organizationId}/webhooks/`,
|
||||||
|
payload
|
||||||
|
);
|
||||||
|
|
||||||
|
await $.flow.setRemoteWebhookId(data.id);
|
||||||
|
},
|
||||||
|
|
||||||
|
async unregisterHook($) {
|
||||||
|
await $.http.delete(`/v3/webhooks/${$.flow.remoteWebhookId}/`);
|
||||||
|
},
|
||||||
|
});
|
@@ -0,0 +1,98 @@
|
|||||||
|
import Crypto from 'crypto';
|
||||||
|
import defineTrigger from '../../../../helpers/define-trigger.js';
|
||||||
|
|
||||||
|
export default defineTrigger({
|
||||||
|
name: 'New events',
|
||||||
|
key: 'newEvents',
|
||||||
|
type: 'webhook',
|
||||||
|
description:
|
||||||
|
'Triggers when a new event is published and live within an organization.',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Organization',
|
||||||
|
key: 'organizationId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listOrganizations',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const dataItem = {
|
||||||
|
raw: $.request.body,
|
||||||
|
meta: {
|
||||||
|
internalId: Crypto.randomUUID(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async testRun($) {
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
orderBy: 'created_desc',
|
||||||
|
status: 'all',
|
||||||
|
};
|
||||||
|
|
||||||
|
const {
|
||||||
|
data: { events },
|
||||||
|
} = await $.http.get(`/v3/organizations/${organizationId}/events/`, params);
|
||||||
|
|
||||||
|
if (events.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const computedWebhookEvent = {
|
||||||
|
config: {
|
||||||
|
action: 'event.published',
|
||||||
|
user_id: events[0].organization_id,
|
||||||
|
webhook_id: '11111111',
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
},
|
||||||
|
api_url: events[0].resource_uri,
|
||||||
|
};
|
||||||
|
|
||||||
|
const dataItem = {
|
||||||
|
raw: computedWebhookEvent,
|
||||||
|
meta: {
|
||||||
|
internalId: computedWebhookEvent.user_id,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async registerHook($) {
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
const payload = {
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
actions: 'event.published',
|
||||||
|
event_id: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
const { data } = await $.http.post(
|
||||||
|
`/v3/organizations/${organizationId}/webhooks/`,
|
||||||
|
payload
|
||||||
|
);
|
||||||
|
|
||||||
|
await $.flow.setRemoteWebhookId(data.id);
|
||||||
|
},
|
||||||
|
|
||||||
|
async unregisterHook($) {
|
||||||
|
await $.http.delete(`/v3/webhooks/${$.flow.remoteWebhookId}/`);
|
||||||
|
},
|
||||||
|
});
|
@@ -0,0 +1,120 @@
|
|||||||
|
import Crypto from 'crypto';
|
||||||
|
import defineTrigger from '../../../../helpers/define-trigger.js';
|
||||||
|
|
||||||
|
export default defineTrigger({
|
||||||
|
name: 'Updated Attendee',
|
||||||
|
key: 'updatedAttendee',
|
||||||
|
type: 'webhook',
|
||||||
|
description: 'Triggers when attendee data is updated.',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Organization',
|
||||||
|
key: 'organizationId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: true,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listOrganizations',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Event',
|
||||||
|
key: 'eventId',
|
||||||
|
type: 'dropdown',
|
||||||
|
required: false,
|
||||||
|
description: '',
|
||||||
|
variables: true,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listEvents',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'parameters.organizationId',
|
||||||
|
value: '{parameters.organizationId}',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
async run($) {
|
||||||
|
const dataItem = {
|
||||||
|
raw: $.request.body,
|
||||||
|
meta: {
|
||||||
|
internalId: Crypto.randomUUID(),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async testRun($) {
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const {
|
||||||
|
data: { attendees },
|
||||||
|
} = await $.http.get(`/v3/events/${eventId}/attendees/`, params);
|
||||||
|
|
||||||
|
if (attendees.length === 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const computedWebhookEvent = {
|
||||||
|
config: {
|
||||||
|
action: 'attendee.updated',
|
||||||
|
user_id: organizationId,
|
||||||
|
webhook_id: '11111111',
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
},
|
||||||
|
api_url: attendees[0].resource_uri,
|
||||||
|
};
|
||||||
|
|
||||||
|
const dataItem = {
|
||||||
|
raw: computedWebhookEvent,
|
||||||
|
meta: {
|
||||||
|
internalId: computedWebhookEvent.user_id,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
$.pushTriggerItem(dataItem);
|
||||||
|
},
|
||||||
|
|
||||||
|
async registerHook($) {
|
||||||
|
const organizationId = $.step.parameters.organizationId;
|
||||||
|
const eventId = $.step.parameters.eventId;
|
||||||
|
|
||||||
|
const payload = {
|
||||||
|
endpoint_url: $.webhookUrl,
|
||||||
|
actions: 'attendee.updated',
|
||||||
|
event_id: eventId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const { data } = await $.http.post(
|
||||||
|
`/v3/organizations/${organizationId}/webhooks/`,
|
||||||
|
payload
|
||||||
|
);
|
||||||
|
|
||||||
|
await $.flow.setRemoteWebhookId(data.id);
|
||||||
|
},
|
||||||
|
|
||||||
|
async unregisterHook($) {
|
||||||
|
await $.http.delete(`/v3/webhooks/${$.flow.remoteWebhookId}/`);
|
||||||
|
},
|
||||||
|
});
|
@@ -1 +0,0 @@
|
|||||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 222.61 155.27"><defs><style>.cls-1{fill:#00bf6f;}</style></defs><title>Goldie_Sabaeus_RGB</title><path id="_Compound_Path_" data-name="<Compound Path>" class="cls-1" d="M249,141.26a26.52,26.52,0,0,0-6.29.78,81.08,81.08,0,0,0-64.19-59.81c-1.4-.25-2.66-.44-4.09-.62h0c.24-7.66.59-16.51,11.86-24.47l-1.78-4.49s-22,6.82-24.49,25.61c-1.09-5.11-11.33-11.51-16.4-12.72l-2.52,4.07s6.72,3.36,8.36,12.63h0A81.08,81.08,0,0,0,85.24,142a26.3,26.3,0,1,0,3.32,50,80.63,80.63,0,0,0,8.54,15.89l21.83-14.71-.19-.24c-5.77-7.42-9.3-18.34-9.9-29.21-.65-12,2.27-23.9,9.93-30.9,15.79-13.44,33-7.31,43.74,5.57h2.89c10.77-12.88,28-19,43.74-5.57,7.65,7,10.58,18.91,9.93,30.9-.59,10.87-4.12,21.79-9.9,29.21l-.19.24,21.83,14.71A80.63,80.63,0,0,0,239.37,192,26.29,26.29,0,1,0,249,141.26Zm-170.53,34a7.76,7.76,0,0,1,0-15.52,7.83,7.83,0,0,1,4.35,1.34,117.87,117.87,0,0,0,.83,12.19A7.76,7.76,0,0,1,78.44,175.31Zm171,0a7.76,7.76,0,0,1-5.18-2,117.87,117.87,0,0,0,.83-12.19,7.75,7.75,0,0,1,12.1,6.43A7.74,7.74,0,0,1,249.48,175.31Z" transform="translate(-52.66 -52.66)"/></svg>
|
|
Before Width: | Height: | Size: 1.1 KiB |
@@ -1,11 +0,0 @@
|
|||||||
const setBaseUrl = ($, requestConfig) => {
|
|
||||||
const accessUrl = $.auth.data.accessUrl;
|
|
||||||
|
|
||||||
if (accessUrl) {
|
|
||||||
requestConfig.baseURL = accessUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
return requestConfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
export default setBaseUrl;
|
|
@@ -1,3 +0,0 @@
|
|||||||
import listSurveys from './list-surveys/index.js';
|
|
||||||
|
|
||||||
export default [listSurveys];
|
|
@@ -1,38 +0,0 @@
|
|||||||
export default {
|
|
||||||
name: 'List surveys',
|
|
||||||
key: 'listSurveys',
|
|
||||||
|
|
||||||
async run($) {
|
|
||||||
const surveys = {
|
|
||||||
data: [],
|
|
||||||
};
|
|
||||||
|
|
||||||
const params = {
|
|
||||||
page: 1,
|
|
||||||
per_page: 100,
|
|
||||||
sort_by: 'date_modified',
|
|
||||||
sort_order: 'DESC',
|
|
||||||
};
|
|
||||||
|
|
||||||
let fetchedSum = 0;
|
|
||||||
let total;
|
|
||||||
do {
|
|
||||||
const { data } = await $.http.get(`/v3/surveys`, { params });
|
|
||||||
|
|
||||||
params.page = params.page + 1;
|
|
||||||
fetchedSum = fetchedSum + params.per_page;
|
|
||||||
total = data.total;
|
|
||||||
|
|
||||||
if (data.data) {
|
|
||||||
for (const survey of data.data) {
|
|
||||||
surveys.data.push({
|
|
||||||
value: survey.id,
|
|
||||||
name: survey.title,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} while (fetchedSum <= total);
|
|
||||||
|
|
||||||
return surveys;
|
|
||||||
},
|
|
||||||
};
|
|
@@ -1,21 +0,0 @@
|
|||||||
import defineApp from '../../helpers/define-app.js';
|
|
||||||
import addAuthHeader from './common/add-auth-header.js';
|
|
||||||
import auth from './auth/index.js';
|
|
||||||
import setBaseUrl from './common/set-base-url.js';
|
|
||||||
import triggers from './triggers/index.js';
|
|
||||||
import dynamicData from './dynamic-data/index.js';
|
|
||||||
|
|
||||||
export default defineApp({
|
|
||||||
name: 'SurveyMonkey',
|
|
||||||
key: 'surveymonkey',
|
|
||||||
baseUrl: 'https://www.surveymonkey.com',
|
|
||||||
apiBaseUrl: '',
|
|
||||||
iconUrl: '{BASE_URL}/apps/surveymonkey/assets/favicon.svg',
|
|
||||||
authDocUrl: '{DOCS_URL}/apps/surveymonkey/connection',
|
|
||||||
primaryColor: '00bf6f',
|
|
||||||
supportsConnections: true,
|
|
||||||
beforeRequest: [setBaseUrl, addAuthHeader],
|
|
||||||
auth,
|
|
||||||
triggers,
|
|
||||||
dynamicData,
|
|
||||||
});
|
|
@@ -1,3 +0,0 @@
|
|||||||
import newResponseNotification from './new-response-notification/index.js';
|
|
||||||
|
|
||||||
export default [newResponseNotification];
|
|
@@ -1,78 +0,0 @@
|
|||||||
import Crypto from 'crypto';
|
|
||||||
import isEmpty from 'lodash/isEmpty.js';
|
|
||||||
import defineTrigger from '../../../../helpers/define-trigger.js';
|
|
||||||
|
|
||||||
export default defineTrigger({
|
|
||||||
name: 'New response notification',
|
|
||||||
key: 'newResponseNotification',
|
|
||||||
type: 'webhook',
|
|
||||||
description: 'Triggers a notification upon the completion of your survey.',
|
|
||||||
arguments: [
|
|
||||||
{
|
|
||||||
label: 'Survey',
|
|
||||||
key: 'surveyId',
|
|
||||||
type: 'dropdown',
|
|
||||||
required: true,
|
|
||||||
description: '',
|
|
||||||
variables: true,
|
|
||||||
source: {
|
|
||||||
type: 'query',
|
|
||||||
name: 'getDynamicData',
|
|
||||||
arguments: [
|
|
||||||
{
|
|
||||||
name: 'key',
|
|
||||||
value: 'listSurveys',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
|
|
||||||
async run($) {
|
|
||||||
const dataItem = {
|
|
||||||
raw: $.request.body,
|
|
||||||
meta: {
|
|
||||||
internalId: Crypto.randomUUID(),
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
$.pushTriggerItem(dataItem);
|
|
||||||
},
|
|
||||||
|
|
||||||
async testRun($) {
|
|
||||||
const lastExecutionStep = await $.getLastExecutionStep();
|
|
||||||
|
|
||||||
if (!isEmpty(lastExecutionStep?.dataOut)) {
|
|
||||||
$.pushTriggerItem({
|
|
||||||
raw: lastExecutionStep.dataOut,
|
|
||||||
meta: {
|
|
||||||
internalId: '',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
async registerHook($) {
|
|
||||||
const surveyId = $.step.parameters.surveyId;
|
|
||||||
|
|
||||||
const body = JSON.stringify({
|
|
||||||
name: $.flow.id,
|
|
||||||
subscription_url: $.webhookUrl,
|
|
||||||
event_type: 'response_completed',
|
|
||||||
object_type: 'survey',
|
|
||||||
object_ids: [surveyId],
|
|
||||||
});
|
|
||||||
|
|
||||||
const { data } = await $.http.post('/v3/webhooks?bypass_ping=true', body, {
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
await $.flow.setRemoteWebhookId(data.id);
|
|
||||||
},
|
|
||||||
|
|
||||||
async unregisterHook($) {
|
|
||||||
await $.http.delete(`/v3/webhooks/${$.flow.remoteWebhookId}`);
|
|
||||||
},
|
|
||||||
});
|
|
@@ -113,6 +113,16 @@ export default defineConfig({
|
|||||||
{ text: 'Connection', link: '/apps/dropbox/connection' },
|
{ text: 'Connection', link: '/apps/dropbox/connection' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
text: 'Eventbrite',
|
||||||
|
collapsible: true,
|
||||||
|
collapsed: true,
|
||||||
|
items: [
|
||||||
|
{ text: 'Triggers', link: '/apps/eventbrite/triggers' },
|
||||||
|
{ text: 'Actions', link: '/apps/eventbrite/actions' },
|
||||||
|
{ text: 'Connection', link: '/apps/eventbrite/connection' },
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
text: 'Filter',
|
text: 'Filter',
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
@@ -437,14 +447,6 @@ export default defineConfig({
|
|||||||
{ text: 'Connection', link: '/apps/stripe/connection' },
|
{ text: 'Connection', link: '/apps/stripe/connection' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
text: 'SurveyMonkey',
|
|
||||||
collapsible: true,
|
|
||||||
collapsed: true,
|
|
||||||
items: [
|
|
||||||
{ text: 'Connection', link: '/apps/surveymonkey/connection' },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
text: 'Telegram',
|
text: 'Telegram',
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
|
12
packages/docs/pages/apps/eventbrite/actions.md
Normal file
12
packages/docs/pages/apps/eventbrite/actions.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
favicon: /favicons/eventbrite.svg
|
||||||
|
items:
|
||||||
|
- name: Create event
|
||||||
|
desc: Creates a new event.
|
||||||
|
---
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import CustomListing from '../../components/CustomListing.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<CustomListing />
|
18
packages/docs/pages/apps/eventbrite/connection.md
Normal file
18
packages/docs/pages/apps/eventbrite/connection.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Eventbrite
|
||||||
|
|
||||||
|
:::info
|
||||||
|
This page explains the steps you need to follow to set up the Eventbrite
|
||||||
|
connection in Automatisch. If any of the steps are outdated, please let us know!
|
||||||
|
:::
|
||||||
|
|
||||||
|
1. Go to your Eventbrite account settings.
|
||||||
|
2. Click on the **Developer Links**, and click on the **API Keys** button.
|
||||||
|
3. Click on the **Create API Key** button.
|
||||||
|
4. Fill the form.
|
||||||
|
5. Copy **OAuth Redirect URL** from Automatisch to **OAuth Redirect URI** field in the form.
|
||||||
|
6. After filling the form, click on the **Create Key** button.
|
||||||
|
7. Click on the **Show API key, client secret and tokens** in the middle of the page.
|
||||||
|
8. Copy the **API Key** value to the `API Key` field on Automatisch.
|
||||||
|
9. Copy the **Client secret** value to the `Client Secret` field on Automatisch.
|
||||||
|
10. Click **Submit** button on Automatisch.
|
||||||
|
11. Congrats! Start using your new Eventbrite connection within the flows.
|
18
packages/docs/pages/apps/eventbrite/triggers.md
Normal file
18
packages/docs/pages/apps/eventbrite/triggers.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
favicon: /favicons/eventbrite.svg
|
||||||
|
items:
|
||||||
|
- name: New attendee check in
|
||||||
|
desc: Triggers when an attendee's barcode is scanned in.
|
||||||
|
- name: New attendee registered
|
||||||
|
desc: Triggers when an attendee orders a ticket for an event.
|
||||||
|
- name: New events
|
||||||
|
desc: Triggers when a new event is published and live within an organization.
|
||||||
|
- name: Updated Attendee
|
||||||
|
desc: Triggers when attendee data is updated.
|
||||||
|
---
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import CustomListing from '../../components/CustomListing.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<CustomListing />
|
@@ -1,18 +0,0 @@
|
|||||||
# SurveyMonkey
|
|
||||||
|
|
||||||
:::info
|
|
||||||
This page explains the steps you need to follow to set up the SurveyMonkey
|
|
||||||
connection in Automatisch. If any of the steps are outdated, please let us know!
|
|
||||||
:::
|
|
||||||
|
|
||||||
1. Go to the [My Apps page of your SurveyMonkey account](https://developer.surveymonkey.com/apps/) to create a project.
|
|
||||||
2. Click on the **Add a New App** button.
|
|
||||||
3. Fill the form and submit it.
|
|
||||||
4. Go to **Settings** page.
|
|
||||||
5. Copy **OAuth Redirect URL** from Automatisch to **OAuth Redirect URIs** field, and click on the **Submit Changes** button.
|
|
||||||
6. In the same page, go to the **Scopes** section.
|
|
||||||
7. Select **Create/Modify Surveys**, **View Surveys**, **View Collectors**, **View Responses**, **Create/Modify Contacts**, **View Contacts**, **Create/Modify Webhooks**, **View Users** and **View Webhooks** scopes and click on the **Update Scopes** button.
|
|
||||||
8. Copy the **Client ID** value in the same page to the `Client ID` field on Automatisch.
|
|
||||||
9. Copy the **Secret** value in the same page to the `Client Secret` field on Automatisch.
|
|
||||||
10. Click **Submit** button on Automatisch.
|
|
||||||
11. Congrats! Start using your new SurveyMonkey connection within the flows.
|
|
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
favicon: /favicons/surveymonkey.svg
|
|
||||||
items:
|
|
||||||
- name: New response notification
|
|
||||||
desc: Triggers a notification upon the completion of your survey.
|
|
||||||
---
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import CustomListing from '../../components/CustomListing.vue'
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<CustomListing />
|
|
@@ -11,6 +11,7 @@ The following integrations are currently supported by Automatisch.
|
|||||||
- [Discord](/apps/discord/actions)
|
- [Discord](/apps/discord/actions)
|
||||||
- [Disqus](/apps/disqus/triggers)
|
- [Disqus](/apps/disqus/triggers)
|
||||||
- [Dropbox](/apps/dropbox/actions)
|
- [Dropbox](/apps/dropbox/actions)
|
||||||
|
- [Eventbrite](/apps/eventbrite/triggers)
|
||||||
- [Filter](/apps/filter/actions)
|
- [Filter](/apps/filter/actions)
|
||||||
- [Flickr](/apps/flickr/triggers)
|
- [Flickr](/apps/flickr/triggers)
|
||||||
- [Formatter](/apps/formatter/actions)
|
- [Formatter](/apps/formatter/actions)
|
||||||
@@ -46,7 +47,6 @@ The following integrations are currently supported by Automatisch.
|
|||||||
- [Spotify](/apps/spotify/actions)
|
- [Spotify](/apps/spotify/actions)
|
||||||
- [Strava](/apps/strava/actions)
|
- [Strava](/apps/strava/actions)
|
||||||
- [Stripe](/apps/stripe/triggers)
|
- [Stripe](/apps/stripe/triggers)
|
||||||
- [SurveyMonkey](/apps/surveymonkey/triggers)
|
|
||||||
- [Telegram](/apps/telegram-bot/actions)
|
- [Telegram](/apps/telegram-bot/actions)
|
||||||
- [Todoist](/apps/todoist/triggers)
|
- [Todoist](/apps/todoist/triggers)
|
||||||
- [Trello](/apps/trello/actions)
|
- [Trello](/apps/trello/actions)
|
||||||
|
7
packages/docs/pages/public/favicons/eventbrite.svg
Normal file
7
packages/docs/pages/public/favicons/eventbrite.svg
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="256px" height="256px" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
|
||||||
|
<g>
|
||||||
|
<circle fill="#F05537" cx="128" cy="128" r="128"></circle>
|
||||||
|
<path d="M117.475323,82.7290398 C136.772428,78.4407943 156.069532,86.3025777 166.790146,101.311437 L81.5017079,120.608542 C84.3605382,102.26438 98.1782181,87.0172853 117.475323,82.7290398 Z M167.266618,153.48509 C160.596014,163.252761 150.351872,170.161601 138.678314,172.782195 C119.38121,177.070441 99.8458692,169.208657 89.1252554,153.961562 L174.651929,134.664457 L188.469609,131.567391 L215.152026,125.611495 C214.91379,119.893834 214.199082,114.176173 213.007903,108.696749 C202.287289,62.7172275 155.354825,33.8906884 108.42236,44.6113021 C61.4898956,55.3319159 32.1868848,101.073201 43.1457344,147.290958 C54.1045839,193.508715 100.798813,222.097018 147.731277,211.376404 C175.366637,205.182272 196.807864,186.599875 207.766714,163.014525 L167.266618,153.48509 L167.266618,153.48509 Z" fill="#FFFFFF" fill-rule="nonzero"></path>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.1 KiB |
@@ -1 +0,0 @@
|
|||||||
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 222.61 155.27"><defs><style>.cls-1{fill:#00bf6f;}</style></defs><title>Goldie_Sabaeus_RGB</title><path id="_Compound_Path_" data-name="<Compound Path>" class="cls-1" d="M249,141.26a26.52,26.52,0,0,0-6.29.78,81.08,81.08,0,0,0-64.19-59.81c-1.4-.25-2.66-.44-4.09-.62h0c.24-7.66.59-16.51,11.86-24.47l-1.78-4.49s-22,6.82-24.49,25.61c-1.09-5.11-11.33-11.51-16.4-12.72l-2.52,4.07s6.72,3.36,8.36,12.63h0A81.08,81.08,0,0,0,85.24,142a26.3,26.3,0,1,0,3.32,50,80.63,80.63,0,0,0,8.54,15.89l21.83-14.71-.19-.24c-5.77-7.42-9.3-18.34-9.9-29.21-.65-12,2.27-23.9,9.93-30.9,15.79-13.44,33-7.31,43.74,5.57h2.89c10.77-12.88,28-19,43.74-5.57,7.65,7,10.58,18.91,9.93,30.9-.59,10.87-4.12,21.79-9.9,29.21l-.19.24,21.83,14.71A80.63,80.63,0,0,0,239.37,192,26.29,26.29,0,1,0,249,141.26Zm-170.53,34a7.76,7.76,0,0,1,0-15.52,7.83,7.83,0,0,1,4.35,1.34,117.87,117.87,0,0,0,.83,12.19A7.76,7.76,0,0,1,78.44,175.31Zm171,0a7.76,7.76,0,0,1-5.18-2,117.87,117.87,0,0,0,.83-12.19,7.75,7.75,0,0,1,12.1,6.43A7.74,7.74,0,0,1,249.48,175.31Z" transform="translate(-52.66 -52.66)"/></svg>
|
|
Before Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user