with CarMD and change.photos?
Transforms an image with various effects and optimizations. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
change_photos: {
type: "app",
app: "change_photos",
}
},
async run({steps, $}) {
const data = {
"url": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
"grayscale": true,
}
return await axios($, {
method: "post",
url: `https://www.change.photos/api/change`,
headers: {
Authorization: `Bearer ${this.change_photos.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})