with TheSportsDB and The Official Board?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_official_board: {
type: "app",
app: "the_official_board",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.theofficialboard.com/rest/test/token`,
headers: {
"accept": `application/json`,
"token": `${this.the_official_board.$auth.api_token}`,
},
})
},
})