Steps to reproduce:
mkdir ttfac-stripe
Pizzly uses uuidv4
to generate pseudo-random setupId, such as a3ef22ba-8916-424f-b613-9e8608026094
. In some cases, you might be interested in renaming the setupId to something more meaningful. Here's how to do it.
Assuming you can't run SQL queries on your production database, to rename a setupId
on your Pizzly instance (e.g. on Heroku), you'll have to create a new endpoint on Pizzly's API and request that endpoint each time you want to rename a setupId.
Here's how to do it:
// Require the library and client | |
const circuitBreaker = require("opossum") | |
const apiClient = require("our-example-api-client") | |
// Our example request | |
const getPosts = (req, res, next) => { | |
// Wrap our client get method in the circuit breaker | |
const breaker = circuitBreaker(apiClient.get, { | |
timeout: 3000, | |
errorThresholdPercentage: 50, | |
resetTimeout: 5000 |
const Bearer = require('@bearer/node-agent') | |
Bearer.init({ secretKey: '...' }) | |
import * as functions from 'firebase-functions' | |
import axios from 'axios' | |
export const test = functions.https.onRequest((request, response) => { | |
response.send('Hello from Firebase!') | |
}) |
Let's see how to post a message with a Slack bot, using Bearer.sh.
xoxb-...
)/** | |
* Quick express-app to retrieve OAuth credentials | |
* | |
* Run it with $ node index.js | |
*/ | |
const express = require('express') | |
const request = require('request') | |
const app = express() |
"use strict"; | |
class EventListener { | |
constructor () { | |
// Declare variables | |
this._onEvents = []; | |
return this; |
application/EDI-X12 | |
application/EDIFACT | |
application/epub+zip | |
application/java-archive | |
application/javascript | |
application/json | |
application/ld+json | |
application/ms-word | |
application/msword | |
application/octet-stream |