with WalleTap and CarMD?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
walletap: {
type: "app",
app: "walletap",
}
},
async run({steps, $}) {
const data = {
"title": `Flash offer!`,
"content": `Get 70% discount now`,
}
return await axios($, {
method: "post",
url: `https://api.walletap.io/template/${this.walletap.$auth.template_id}/notification`,
headers: {
"x-api-key": `${this.walletap.$auth.api_key}`,
},
data,
})
},
})
The CarMD API taps into a vast database of car diagnostics and maintenance information. With it, you can fetch detailed reports on a vehicle's health, decode check engine lights, predict upcoming maintenance issues, and get fair estimates for repair costs. By integrating CarMD with Pipedream, you can automate workflows for vehicle management, create alerts for vehicle diagnostics, or build apps that help users maintain their cars better.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
carmd: {
type: "app",
app: "carmd",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.carmd.com/v3.0/credits`,
headers: {
"content-type": `application/json`,
"partner-token": `${this.carmd.$auth.partner_token}`,
"authorization": `Basic ${this.carmd.$auth.authorization_key}`,
},
})
},
})