with Kraken.io and Canva Enterprise?
Creates an asynchronous job to autofill a design from a brand template with your input information. See the documentation
Starts a new job to export a file from Canva. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kraken_io: {
type: "app",
app: "kraken_io",
}
},
async run({steps, $}) {
const data = {
"auth": {
"api_key": `${this.kraken_io.$auth.api_key}`,
"api_secret": `${this.kraken_io.$auth.api_secret}`
}
};
return await axios($, {
method: "post",
url: `https://api.kraken.io/user_status`,
headers: {
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
canva_enterprise: {
type: "app",
app: "canva_enterprise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.canva.com/rest/v1/users/me`,
headers: {
Authorization: `Bearer ${this.canva_enterprise.$auth.oauth_access_token}`,
},
})
},
})