with Dynamic Content Snippet and ngrok?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dynamic_content_snippet: {
type: "app",
app: "dynamic_content_snippet",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.contentsnip.com/api/mappings`,
headers: {
"x-api-key": `${this.dynamic_content_snippet.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ngrok: {
type: "app",
app: "ngrok",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ngrok.com/api_keys`,
headers: {
Authorization: `Bearer ${this.ngrok.$auth.api_key}`,
"ngrok-version": `2`,
},
})
},
})