with Contentstack and Domain Group?
Emit new event when an agency listing is updated. See the documentation
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.
Emit new event when a new agency is created. See the documentation
Creates a new business listing. See the documentation
Creates a new commercial listing. See the documentation
Creates a new residential listing. See the documentation
Publishes a specific entry using its UID. See the documentation
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`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
domain_group: {
type: "app",
app: "domain_group",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.domain_group.$auth.api_url}/v1/me`,
headers: {
Authorization: `Bearer ${this.domain_group.$auth.oauth_access_token}`,
},
})
},
})