with Ringg AI and Dots!?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ringg_ai: {
type: "app",
app: "ringg_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://prod-api.ringg.ai/ca/api/v0/workspace`,
headers: {
"x-api-key": `${this.ringg_ai.$auth.api_key}`,
},
})
},
})
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,
})
},
})