import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
copicake: {
type: "app",
app: "copicake",
}
},
async run({steps, $}) {
const data = {
"template_id": `${this.copicake.$auth.template_id}`,
}
return await axios($, {
method: "post",
url: `https://api.copicake.com/v1/image/create`,
headers: {
Authorization: `Bearer ${this.copicake.$auth.api_key}`,
},
data,
})
},
})
Copicake uses API keys for authentication. When you connect your Copicake account, Pipedream securely stores the keys so you can easily authenticate to Copicake APIs in both code and no-code steps.