auths
objectThe name (slug) of the integration. For example, github
. See the Pizzly docs for more info.
return
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, params, auths) => {
}
import fetch from 'node-fetch';
const { host, secretKey } = auths.pizzly
const authentication = 'Basic ' + Buffer.from(secretKey + ':').toString('base64')
// Retrieve an integration's details
// https://github.com/Bearer/Pizzly/wiki/Reference-:-API#retrieve-an-integrations-details
return await (await fetch(`https://${host}/api/${params.integrationSlug}/authentications/${params.authId}`, { headers: { "Authorization": authentication } })).json()
auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const { Octokit } = require("@octokit/rest");
const octokit = new Octokit({
auth: steps.get_authentication.$return_value.payload.accessToken,
})
return await octokit.rest.users.getByUsername({
username: "PipedreamHQ",
});