with Siteleaf and changes.page?
Emit new event when a new collection is created. See the docs here
The Siteleaf API facilitates content management by enabling programmatic interactions with your Siteleaf site. Via the API, you can automate content creation, updates, and retrieval, making it possible to keep your website current without manual intervention. It's designed for developers who need to streamline their content operations or integrate their Siteleaf content with other tools and services.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
siteleaf: {
type: "app",
app: "siteleaf",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.siteleaf.com/v2/sites`,
auth: {
username: `${this.siteleaf.$auth.api_key}`,
password: `${this.siteleaf.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
changes_page: {
type: "app",
app: "changes_page",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.changes_page.$auth.subdomain}.changes.page/latest.json`,
})
},
})