Skip to content

Instantly share code, notes, and snippets.

@ardeay
ardeay / index.js
Created June 3, 2022 15:29 — forked from weienwong/index.js
Webhook creation and test script
require('dotenv').config()
const request = require('request')
// webhooks instances-api
function scheduleItemPublishWebhook () {
// create webhook
const createItemPublishWebhookOption = {
method: 'POST',
url: `${process.env.ACCOUNTS_API_HOST}/v1/webhooks`,
headers: {