with Ory and WalleTap?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ory: {
type: "app",
app: "ory",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.console.ory.sh/projects`,
headers: {
Authorization: `Bearer ${this.ory.$auth.workspace_api_key}`,
"Content-Type": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
walletap: {
type: "app",
app: "walletap",
}
},
async run({steps, $}) {
const data = {
"title": `Flash offer!`,
"content": `Get 70% discount now`,
}
return await axios($, {
method: "post",
url: `https://api.walletap.io/template/${this.walletap.$auth.template_id}/notification`,
headers: {
"x-api-key": `${this.walletap.$auth.api_key}`,
},
data,
})
},
})