with Exa and Stripe?
Generates LLM-powered responses to queries, informed by Exa search results with citations. Handles both factual queries requiring direct answers and open-ended questions needing detailed summaries. See the documentation
Identifies and retrieves web pages similar to a provided URL with optional content extraction. See the documentation
Retrieves full page contents, summaries, and metadata for a list of URLs. Uses cached results with optional live crawling fallback. See the documentation
Cancel a pending payout or reverse a paid payout. See the documentation here and here
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
exa: {
type: "app",
app: "exa",
}
},
async run({steps, $}) {
const data = {
"query": `Tell me about Pipedream — what makes it great?`,
}
return await axios($, {
method: "post",
url: `https://api.exa.ai/search`,
headers: {
"x-api-key": `${this.exa.$auth.api_key}`,
},
data,
})
},
})
The Stripe API is a powerful tool for managing online payments, subscriptions, and invoices. With Pipedream, you can leverage this API to automate payment processing, monitor transactions, and sync billing data with other services. Pipedream's no-code platform allows for quick integration and creation of serverless workflows that react to Stripe events in real-time. For instance, you might automatically update customer records, send personalized emails after successful payments, or escalate failed transactions to your support team.
import stripe from 'stripe'
export default defineComponent({
props: {
stripe: {
type: "app",
app: "stripe",
}
},
async run({steps, $}) {
const client = stripe(this.stripe.$auth.api_key)
return await client.accounts.list({ limit: 1 })
},
})