with RunPod and Systeme.io?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
runpod: {
type: "app",
app: "runpod",
}
},
async run({steps, $}) {
const data = {
"query": `query GpuTypes { gpuTypes { id displayName memoryInGb } }`,
}
return await axios($, {
method: "post",
url: `https://api.runpod.io/graphql`,
headers: {
"Content-Type": `application/json`,
},
params: {
api_key: `${this.runpod.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
systeme_io: {
type: "app",
app: "systeme_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.systeme.io/api/contacts`,
headers: {
"x-api-key": `${this.systeme_io.$auth.api_key}`,
},
})
},
})