Trigger workflows on new emails, and send emails to yourself as part of a Pipedream workflow.
Get a unique address where you can send emails to trigger your workflow.
Emit new event when a new sports event is listed on The Odds API.
Emit new event when a new sports event is listed on The Odds API.
Retrieve the current odds for a specific sport or match. See the documentation
Customize and send an email to the email address you registered with Pipedream. The email will be sent by notifications@pipedream.com.
Get a list of upcoming sports events available on The Odds API. See the documentation
export default defineComponent({
async run({ $ }) {
const options = {
subject: 'Your subject here',
text: 'Your text here'
};
$.send.email(options);
},
});
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}`,
},
})
},
})