with KnoCommerce and RunPod?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
knocommerce: {
type: "app",
app: "knocommerce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app-api.knocommerce.com/api/rest/surveys`,
headers: {
Authorization: `Bearer ${this.knocommerce.$auth.oauth_access_token}`,
},
params: {
format: `json`,
},
})
},
})
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,
})
},
})