with Dungeon Fighter Online and RunPod?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dungeon_fighter_online: {
type: "app",
app: "dungeon_fighter_online",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dfoneople.com/df/servers`,
params: {
apikey: `${this.dungeon_fighter_online.$auth.api_key}`,
},
})
},
})
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,
})
},
})