with AI Chatbot Hub and The Odds API?
Retrieve the current odds for a specific sport or match. See the documentation
Get a list of upcoming sports events available on The Odds API. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ai_chatbot_hub: {
type: "app",
app: "ai_chatbot_hub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.aichatbothub.com/api/v1/chatbots`,
headers: {
Authorization: `Bearer ${this.ai_chatbot_hub.$auth.api_key}`,
},
})
},
})
With The Odds API on Pipedream, you can access a range of bookmakers and exchanges to get live and upcoming sports odds. This integration allows you to create workflows for odds comparison, betting opportunities, or even to power a custom alerting system for when odds reach a certain threshold. The data provided by The Odds API can be used to inform decisions or feed into other apps for enhanced functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
the_odds_api: {
type: "app",
app: "the_odds_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.the-odds-api.com/v4/sports/basketball_nba/scores/`,
params: {
daysFrom: `1`,
apiKey: `${this.the_odds_api.$auth.api_key}`,
},
})
},
})