with QR API and RunPod?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
qr_api: {
type: "app",
app: "qr_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://qrapi.io/v2/qrcode/url`,
headers: {
"accept": `image/png`,
},
params: {
apikey: `${this.qr_api.$auth.api_key}`,
url: `https://pipedream.com`,
},
})
},
})
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,
})
},
})