with Piped and SparkPost?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
piped: {
type: "app",
app: "piped",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.piped.$auth.instance_api_url}/suggestions`,
params: {
query: `Game`,
},
})
},
})
SparkPost API allows you to send and track emails with precision and scale. Using this API on Pipedream, you can automate email operations, integrate with other services, and analyze email performance. With Pipedream’s serverless platform, you can create workflows that trigger on specific events, process data, and perform actions in response to the insights collected from SparkPost or other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sparkpost: {
type: "app",
app: "sparkpost",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sparkpost.$auth.domain}.sparkpost.com/api/v1/account?include=usage`,
headers: {
"Content-Type": `application/json`,
"Authorization": `${this.sparkpost.$auth.api_key}`,
},
})
},
})