with Planday and Alt Text Generator AI?
Generate alt text for an image. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
planday: {
type: "app",
app: "planday",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openapi.planday.com/hr/v1/Departments`,
headers: {
Authorization: `Bearer ${this.planday.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alt_text_generator_ai: {
type: "app",
app: "alt_text_generator_ai",
}
},
async run({steps, $}) {
const data = {
"image": `https://alttextgeneratorai.com/_next/image?url=%2Fhero1.jpg&w=1080&q=75`,
"wpkey": `${this.alt_text_generator_ai.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://alttextgeneratorai.com/api/wp`,
data,
})
},
})