with QR API and TheSportsDB?
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: {
thesportsdb: {
type: "app",
app: "thesportsdb",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.thesportsdb.com/api/v1/json/${this.thesportsdb.$auth.api_key}/searchplayers.php`,
headers: {
Authorization: `Bearer `,
},
params: {
"p": `{your_player_search}`,
},
})
},
})