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}`,
},
})
},
})
TheSportsDB uses API keys for authentication. When you connect your TheSportsDB account, Pipedream securely stores the keys so you can easily authenticate to TheSportsDB APIs in both code and no-code steps.