0.1.14 • Published 2 years ago
@simplycubed/webflow-utils v0.1.14
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>",
});
0.1.14
2 years ago
0.1.10
2 years ago
0.1.11
2 years ago
0.1.12
2 years ago
0.1.13
2 years ago
0.1.8
2 years ago
0.1.9
2 years ago
0.1.7
2 years ago
0.1.4
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.3
2 years ago
0.1.0
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
3 years ago
0.0.0
3 years ago