import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
contentstack: {
type: "app",
app: "contentstack",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.contentstack.$auth.region}api.contentstack.io/v3/content_types`,
headers: {
"api_key": `${this.contentstack.$auth.stack_api_key}`,
"authorization": `${this.contentstack.$auth.management_token}`,
"content-type": `application/json`,
},
})
},
})
Emit new event when a new asset is created in ContentStack.
Emit new event when a new entry is created in ContentStack.
Emit new event when an entry is published in ContentStack.
Creates a new entry in Contentstack. See the documentation
Publishes a specific entry using its UID. See the documentation
Updates an existing Contentstack entry. See the documentation
Contentstack uses API keys for authentication. When you connect your Contentstack account, Pipedream securely stores the keys so you can easily authenticate to Contentstack APIs in both code and no-code steps.