0.1.14 • Published 10 months ago

@simplycubed/webflow-utils v0.1.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

webflow-utils

This package contains supporting helper functions and Types for Webflow.

Usage

Webflow signature middleware

import { createValidateWebflowSignatureMw } from "@simplycubed/webflow-utils";
import express from "express";

const validateWebflowSignatureMw = createValidateWebflowSignatureMw(
  "<webflow-app-client-secret>"
);
const app = express();
// attach middleware to Webflow webhook
app.post("/webflow-hook", validateWebflowSignatureMw, async (req, res) => {});

Configure Webflow OAuth endpoints to automatically create webhooks when authenticated.

import { configureWebflowAuthEndpoints } from "@simplycubed/webflow-utils";
import express from "express";
import Webflow from "webflow-api";

const app = express();
const webflow = new Webflow();

configureWebflowAuthEndpoints(app, webflow, {
  webflowAppClientID: "<webflow-app-client-id>",
  webflowAppClientSecret: "<webflow-app-client-secret>",
  location: "<function-location>",
  projectId: "<google-project-id>",
  extensionPrefix: "<firestore-extension-prefix>",
  webflowSiteID: "<webflow-site-id>",
});

SimplyCubed Extensions: Starter Kits

0.1.14

10 months ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

12 months ago

0.1.8

1 year ago

0.1.9

1 year ago

0.1.7

1 year ago

0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago