with Dots! and Alt Text Generator AI?
Dots is a simple, powerful API for creating and manipulating dots on a HTML5
Canvas. With Dots, you can create anything from simple animations to full-blown
games.
Here are some examples of what you can build with the Dots API:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dots_: {
type: "app",
app: "dots_",
}
},
async run({steps, $}) {
const data = {
"email": `replace_with_email`,
"country_code": `replace_with_country_code`,
"phone_number": `replace_with_phone_number`,
"first_name": `replace_with_first_name`,
"last_name": `replace_with_last_name`,
"username": `replace_with_username`,
}
return await axios($, {
method: "post",
url: `https://${this.dots_.$auth.domain}.com/api/users/create`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.dots_.$auth.client_id}`,
password: `${this.dots_.$auth.api_key}`,
},
data,
})
},
})
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,
})
},
})