with AltTextify and Formatting?
Emit new event when new alt text is generated for an image. See the documentation
Delete the generated alt text for a specific image using the asset ID. See the documentation
Retrieve alt text for a previously submitted image using the asset ID. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alttextify: {
type: "app",
app: "alttextify",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.alttextify.net/api/v1/image`,
headers: {
"x-api-key": `${this.alttextify.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})