with Alt Text Generator AI and Opinion Stage?
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opinion_stage: {
type: "app",
app: "opinion_stage",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.opinionstage.com/api/v2/items`,
headers: {
"accept": `application/vnd.api+json`,
},
auth: {
username: `${this.opinion_stage.$auth.api_key}`,
password: ``,
},
})
},
})